use console.error instead of console.log for unexpected errors

This commit is contained in:
David Lechner
2022-12-17 14:04:12 -06:00
committed by David Lechner
parent b8a1c70536
commit f4598db3a4
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -444,7 +444,7 @@ const Editor: React.VFC = () => {
// istanbul ignore if: should not be reachable
if (!(firstItem instanceof HTMLElement)) {
console.log(`bug: firstItem is not an HTMLElement: ${firstItem}`);
console.error(`bug: firstItem is not an HTMLElement: ${firstItem}`);
return;
}
+1 -1
View File
@@ -751,7 +751,7 @@ function* handleFlashUsbDfu(action: ReturnType<typeof firmwareFlashUsbDfu>): Gen
}
// not expected
console.log(err);
console.error(err);
}),
);