Fix logger.warning is not a function

Replace logger.warning with logger.warn as I incorrectly assumed the
warning method of console was called console.warning instead of
console.warn.
This commit is contained in:
Hornwitser committed 2020-08-27 11:31:36 +02:00
1 parent 0b790357f9
commit a40c78d85d
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -1188,11 +1188,11 @@ async function symlinkMods(instance, sharedMods, logger) {
}
} else {
logger.warning(`Warning: ignoring file '${entry.name}' in sharedMods`);
logger.warn(`Warning: ignoring file '${entry.name}' in sharedMods`);
}
} else {
logger.warning(`Warning: ignoring non-file '${entry.name}' in sharedMods`);
logger.warn(`Warning: ignoring non-file '${entry.name}' in sharedMods`);
}
}
}
+1 -1
View File
@@ -92,7 +92,7 @@ describe("Slave testing", function() {
describe("symlinkMods()", function() {
let testDir = path.join("temp", "test", "symlink");
let discardingLogger = {
warning: function() { },
warn: function() { },
log: function() { },
};