Updated the error code

This commit is contained in:
Ionică Bizău 2015-11-01 12:40:11 +02:00
parent 78a27a6823
commit ca496c67ee

View file

@ -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");
}
}