aboutsummaryrefslogtreecommitdiffstats
path: root/lib/logger.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/logger.js')
-rw-r--r--lib/logger.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/logger.js b/lib/logger.js
index 71514c9..1175bf8 100644
--- a/lib/logger.js
+++ b/lib/logger.js
@@ -7,6 +7,7 @@ var Color = require("color").Color;
var tabs = require("tabs");
var prompts = require("prompts");
var apiUtils = require("api-utils");
+var xrpc = require("xmlrpc");
function Logger(store, abbsMap) {
this.EmptyLogsColor = new Color(0, 255, 0);
@@ -83,7 +84,8 @@ Logger.prototype.timeSheetRecordsPrinter = function(body, records) {
var bugNo = utilMod.getBugNo(x.url);
// protection against misbehaving URLs
if (!bugNo) {
- throw new Error("wrong record:\n" + rec.toSource() + "\n");
+ console.error("wrong record:\n" + rec.toSource() + "\n");
+ return false;
}
if (dayStr != currentDay) {
currentDay = dayStr;
@@ -126,4 +128,4 @@ Logger.prototype.createBlankPage = function (ttl, bodyBuildCB) {
Logger.prototype.generateTimeSheet = function(body) {
var doc = body.ownerDocument;
this.timeSheetRecordsPrinter(body, this.store);
-}; \ No newline at end of file
+};