Skip to content

Commit

Permalink
[#274] Don't fallback on async when the WS class is missing, throw a …
Browse files Browse the repository at this point in the history
…RuntimeException (or the issue will be harder to find)
  • Loading branch information
erwan committed Oct 19, 2010
1 parent 7bfb97b commit d467bce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions framework/src/play/libs/WS.java
Expand Up @@ -76,8 +76,7 @@ static void init() {
wsImpl = (WSImpl)Play.classloader.loadClass(implementation).newInstance();
Logger.trace("Using the class:" + implementation + " for web service");
} catch (Exception e) {
Logger.error("Cannot load class " + implementation + ", using async instead");
wsImpl = new WSAsync();
throw new RuntimeException("Unable to load the class: " + implementation + " for web service");
}
}
}
Expand Down

0 comments on commit d467bce

Please sign in to comment.