mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-19 04:46:42 +02:00
fiddeling around with re-throwing event caught by global error-handler
This commit is contained in:
@@ -237,7 +237,11 @@ egw.extend('debug', egw.MODULE_GLOBAL, function(_app, _wnd) {
|
|||||||
log_on_client('error', [e.originalEvent.message]);
|
log_on_client('error', [e.originalEvent.message]);
|
||||||
raise_error();
|
raise_error();
|
||||||
// rethrow error to let browser log and show it in usual way too
|
// 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;
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user