dump a stack on an invalid operation, in case it was guice's fault
This commit is contained in:
parent
79f2f59716
commit
e832d4fd02
|
@ -56,6 +56,8 @@ public class AjaxServlet extends CahServlet {
|
||||||
try {
|
try {
|
||||||
handler = getInjector().getInstance(Handlers.LIST.get(op));
|
handler = getInjector().getInstance(Handlers.LIST.get(op));
|
||||||
} catch (final Exception e) {
|
} catch (final Exception e) {
|
||||||
|
System.err.println("Exception creating handler for " + op);
|
||||||
|
e.printStackTrace(System.err);
|
||||||
returnError(out, ErrorCode.BAD_OP, serial);
|
returnError(out, ErrorCode.BAD_OP, serial);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue