From 60f8e79f8e10788e63fca9dd36bf4e5234ec7491 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Sun, 30 Oct 2011 10:33:57 +0100 Subject: Make script work even when no credentials are stored! Fixes #117. --- lib/libbugzilla.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/libbugzilla.js b/lib/libbugzilla.js index 18cd2b5..e30efef 100644 --- a/lib/libbugzilla.js +++ b/lib/libbugzilla.js @@ -340,6 +340,10 @@ function loginToAllBugzillas(callback) { // Increment call counter loginCallsCounter++; }); + if (loginCallsCounter == 0) { + debug("No credentials!"); + callback(config); + } }, onError: function onError() { console.error("No credentials were found for " + bugzillaHost + "!"); -- cgit