mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Log the exception loading the module script on the console.
This commit is contained in:
@@ -550,12 +550,16 @@ function(require, $, _, S, Bootstrap, pgAdmin, alertify, CodeMirror) {
|
||||
if (m.init && typeof(m.init) == 'function')
|
||||
m.init();
|
||||
} catch (e) {
|
||||
// Log this exception on console to understand the issue properly.
|
||||
console.log(e);
|
||||
obj.report_error(
|
||||
'{{ _('Error loading script - ') }}' + path);
|
||||
}
|
||||
if (c)
|
||||
c.loaded += 1;
|
||||
}, function() {
|
||||
// Log the arguments on console to understand the issue properly.
|
||||
console.log(arguments);
|
||||
obj.report_error(
|
||||
'{{ _('Error loading script - ') }}' + path);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user