diff --git a/load/page.js b/load/page.js index add93a9..6a383bc 100644 --- a/load/page.js +++ b/load/page.js @@ -1093,21 +1093,23 @@ function Page(debug) { } this.load = function(page) { - var mb = new MsgBase(FRAMES_MSG_BASE); var headers; + var mb = new MsgBase(FRAMES_MSG_BASE); + try { if (mb.open()) { headers = mb.get_all_msg_headers(false,false) || []; } else { - log(LOG_ERROR,code+' cannot be opened:'+mb.error); + log(LOG_ERROR,'! ['+FRAMES_MSG_BASE+'] cannot be opened ['+mb.error+']'); return false; } + // @todo It appears if the message base doesnt exist, we dont error? } catch (e) { - log(LOG_ERROR,code+' cannot be opened:'+e.message); + log(LOG_ERROR,'! ['+FRAMES_MSG_BASE+'] cannot be opened ['+e.message+']'); return false; }