mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:07 +01:00
fiddeling around with re-throwing event caught by global error-handler
This commit is contained in:
parent
1f599abaf6
commit
12666f0f53
@ -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;
|
||||
});
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user