Skip to content

Commit

Permalink
More specific error messages for GWT failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanSweet committed Oct 12, 2020
1 parent 98f410e commit bfdf206
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Expand Up @@ -100,7 +100,7 @@ public FileType type () {
/** Returns a java.io.File that represents this file handle. Note the returned file will only be usable for
* {@link FileType#Absolute} and {@link FileType#External} file handles. */
public File file () {
throw new GdxRuntimeException("Not supported in GWT backend");
throw new GdxRuntimeException("file() not supported in GWT backend");
}

/** Returns a stream for reading this file as bytes.
Expand Down
Expand Up @@ -50,17 +50,17 @@ public FileHandle internal (String path) {

@Override
public FileHandle external (String path) {
throw new GdxRuntimeException("Not supported in GWT backend");
throw new GdxRuntimeException("external() not supported in GWT backend");
}

@Override
public FileHandle absolute (String path) {
throw new GdxRuntimeException("Not supported in GWT backend");
throw new GdxRuntimeException("absolute() not supported in GWT backend");
}

@Override
public FileHandle local (String path) {
throw new GdxRuntimeException("Not supported in GWT backend");
throw new GdxRuntimeException("local() not supported in GWT backend");
}

@Override
Expand Down
Expand Up @@ -44,7 +44,7 @@

public class Lwjgl3TestStarter {

private static CommandLineOptions options;
static CommandLineOptions options;

/**
* Runs libgdx tests.
Expand Down

0 comments on commit bfdf206

Please sign in to comment.