From ca496c67eed574b75055f92e009a4971c2d7a573 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ionic=C4=83=20Biz=C4=83u?= Date: Sun, 1 Nov 2015 12:40:11 +0200 Subject: [PATCH] Updated the error code --- bin/git-stats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/git-stats b/bin/git-stats index 97e77f8..2c0a776 100755 --- a/bin/git-stats +++ b/bin/git-stats @@ -24,7 +24,7 @@ Moment.suppressDeprecationWarnings = true; try { GitStats.initConfig(); } catch (err) { - if (err.code !== "ENOENT") { + if (err.code !== "MODULE_NOT_FOUND") { Logger.log("Failed to read the config file:\n" + err.stack, "warn"); } }