Added a custom error message to GWTShellServlet for "gwt.js" requests. Review by: bruce (TBR) git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@2056 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/dev/core/src/com/google/gwt/dev/shell/GWTShellServlet.java b/dev/core/src/com/google/gwt/dev/shell/GWTShellServlet.java index e026771..d647c3c 100644 --- a/dev/core/src/com/google/gwt/dev/shell/GWTShellServlet.java +++ b/dev/core/src/com/google/gwt/dev/shell/GWTShellServlet.java
@@ -423,9 +423,14 @@ } if (foundResource == null) { - msg = "Resource not found: " + partialPath + "\n" - + "(Could a file be missing from the public path or a <servlet> " - + "tag misconfigured in module " + moduleName + ".gwt.xml ?)"; + if ("gwt.js".equals(partialPath)) { + msg = "Loading the old 'gwt.js' bootstrap script is no longer supported; please load '" + + moduleName + ".nocache.js' directly"; + } else { + msg = "Resource not found: " + partialPath + "; " + + "(could a file be missing from the public path or a <servlet> " + + "tag misconfigured in module " + moduleName + ".gwt.xml ?)"; + } logger.log(TreeLogger.WARN, msg, null); throw new UnableToCompleteException(); }
diff --git a/user/src/com/google/gwt/junit/RunStyleLocalWeb.java b/user/src/com/google/gwt/junit/RunStyleLocalWeb.java index ce771b9..bf1266b 100644 --- a/user/src/com/google/gwt/junit/RunStyleLocalWeb.java +++ b/user/src/com/google/gwt/junit/RunStyleLocalWeb.java
@@ -24,7 +24,7 @@ class RunStyleLocalWeb extends RunStyleLocalHosted { /** - * This query parameter forces gwt.js to run web mode. + * This query parameter forces web mode in a hosted browser. */ private static final String PROP_GWT_HYBRID_MODE = "gwt.hybrid";