aboutsummaryrefslogtreecommitdiffstats
path: root/lib/logger.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2010-09-10 20:50:05 +0200
committerMatěj Cepl <mcepl@redhat.com>2010-09-10 20:50:05 +0200
commit07a9f4248c978771e55dc9054238ff03a4d6865c (patch)
treef98f4a1e98d06bd1d59c188a9f31032a1bd74907 /lib/logger.js
parent2a7171fb5cd16ae361916dd0dd97d566f970a6df (diff)
downloadbugzilla-triage-07a9f4248c978771e55dc9054238ff03a4d6865c.tar.gz
Getting Bug.get via XML-RPC
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
+};