shut up dependabot

This commit is contained in:
zkldi
2021-04-27 19:44:57 +01:00
parent e319f88da8
commit 0a36b3fb39
4 changed files with 104 additions and 107 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
import winston, { format, LeveledLogMethod, Logger, transports } from "winston";
import winston, { format, transports } from "winston";
import { ImportTypes, PublicUserDocument } from "kamaitachi-common";
import { FormatUserDoc } from "./core/format-user";
import { KtLogger } from "./types";
@@ -213,10 +213,10 @@ async function EamScoreConverterWrapper(
return err;
} else if (err instanceof ScoreImportFatalError) {
throw err; // throw it all the way up.
} else {
logger.error(`Unknown error: `, { err });
return new InternalFailure("An unknown internal failure has occured.");
}
logger.error(`Unknown error: `, { err });
return new InternalFailure("An unknown internal failure has occured.");
}
}