if (passes > 100) {
VConsole.log(LOOP_ABORT_MESSAGE);
- VNotification.createNotification(VNotification.DELAY_FOREVER,
- connection.getUIConnector().getWidget()).show(
- LOOP_ABORT_MESSAGE, VNotification.CENTERED, "error");
+ if (ApplicationConfiguration.isDebugMode()) {
+ VNotification.createNotification(
+ VNotification.DELAY_FOREVER,
+ connection.getUIConnector().getWidget())
+ .show(LOOP_ABORT_MESSAGE, VNotification.CENTERED,
+ "error");
+ }
break;
}
}
@Override
public void error(Throwable e) {
- // Borrow exception handling from VDebugConsole
- VDebugConsole.handleError(e, this);
+ GWT.log(e.getMessage(), e);
}
@Override