dump a stack on an invalid operation, in case it was guice's fault

This commit is contained in:
Andy Janata 2012-01-17 17:48:44 -08:00
parent 79f2f59716
commit e832d4fd02
1 changed files with 2 additions and 0 deletions

View File

@ -56,6 +56,8 @@ public class AjaxServlet extends CahServlet {
try {
handler = getInjector().getInstance(Handlers.LIST.get(op));
} catch (final Exception e) {
System.err.println("Exception creating handler for " + op);
e.printStackTrace(System.err);
returnError(out, ErrorCode.BAD_OP, serial);
return;
}