From 887c92ad6f16d61049b792e1073a05a857782b12 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 26 Mar 2016 12:57:58 +0530 Subject: [PATCH] Also log unhandled errors to the console --- src/pyj/book_list/boss.pyj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pyj/book_list/boss.pyj b/src/pyj/book_list/boss.pyj index 50a873857f..586c134f2a 100644 --- a/src/pyj/book_list/boss.pyj +++ b/src/pyj/book_list/boss.pyj @@ -66,6 +66,7 @@ class Boss: document.title = self.read_ui.current_metadata.title def onerror(self, msg, script_url, line_number, column_number, error_object): + console.log(error_object) try: fname = str.rpartition(script_url, '/')[-1] or script_url msg = msg + '
' + str.format('Error at {}:{}:{}', fname, line_number, column_number or '') + '' @@ -75,7 +76,7 @@ class Boss: error_dialog(_('Unhandled error'), msg, details) return True except: - console.error('There was an error in the unhandled exception handler') + console.log('There was an error in the unhandled exception handler') def onpopstate(self, ev): data = parse_url_params()