diff options
Diffstat (limited to 'lib/rhbzpage.js')
-rw-r--r-- | lib/rhbzpage.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/rhbzpage.js b/lib/rhbzpage.js index bc3394c..fd53278 100644 --- a/lib/rhbzpage.js +++ b/lib/rhbzpage.js @@ -22,7 +22,16 @@ var tabs = require("tabs"); var RHBugzillaPage = function RHBugzillaPage(win, config) { // inheritance ... call superobject's constructor - BZPage.call(this, win, config); + try { + BZPage.call(this, win, config); + } catch (ex) { + if (ex instanceof require("bzpage").NotLoggedinException) { + console.log(ex); + return ; // Bail out if the user is not logged in + } else { + throw ex; // rethrow the exception otherwise + } + } // For identification of graphics card var manuChipStrs = [ [ "ATI Radeon", "ATI", "1002" ], |