From c32317a686166616019dc4f3ef2717e3a289d274 Mon Sep 17 00:00:00 2001 From: nrew225 Date: Mon, 24 Oct 2016 19:49:03 -0700 Subject: [PATCH] Fix line numbers --- test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test.js b/test.js index 03eeb954..88cc9ced 100644 --- a/test.js +++ b/test.js @@ -27,8 +27,8 @@ function entryErrorCheck(md) { if (entryArray[i].pass == true) { totalPass += 1; //console.log(i + 1 + ". Pass: " + entryArray[i].name); - } else { - console.log("Line #" + i + 1 + ". Fail: " + entryArray[i].name); + } else { + console.log("Line #" + (i + 1) + ". Fail: " + entryArray[i].name); //console.log(entries[i]); totalFail += 1; }