fiddeling around with re-throwing event caught by global error-handler

This commit is contained in:
Ralf Becker 2014-02-10 09:18:08 +00:00
parent 1f599abaf6
commit 12666f0f53

View File

@ -237,7 +237,11 @@ egw.extend('debug', egw.MODULE_GLOBAL, function(_app, _wnd) {
log_on_client('error', [e.originalEvent.message]);
raise_error();
// rethrow error to let browser log and show it in usual way too
throw e.originalEvent;
if (typeof e.originalEvent == 'object' && typeof e.originalEvent.error == 'object')
{
throw e.originalEvent.error;
}
throw e.message;
});
/**