fix(lint): fail check if any log errors (#1173)

This commit is contained in:
uncenter authored and GitHub committed 2024-08-07 08:59:50 -04:00
1 parent fd457b15f7
commit b08fbc784e
2 files changed
+6 -3

No files matched your search

+5 -2
View File
@@ -66,11 +66,14 @@ const prettyPrint = (
};
export const log = {
log: (
failed: false,
log: function (
message: string,
props: LoggerProps,
severity: "error" | "warning",
) => {
) {
if (severity === "error") this.failed = true;
if (Deno.env.has("CI")) {
switch (severity) {
case "error":