From f4598db3a413595c420d76f3c06cd44f6e1b2bf7 Mon Sep 17 00:00:00 2001 From: David Lechner Date: Sat, 17 Dec 2022 13:56:04 -0600 Subject: [PATCH] use console.error instead of console.log for unexpected errors --- src/editor/Editor.tsx | 2 +- src/firmware/sagas.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/editor/Editor.tsx b/src/editor/Editor.tsx index 8280818e..630c6195 100644 --- a/src/editor/Editor.tsx +++ b/src/editor/Editor.tsx @@ -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; } diff --git a/src/firmware/sagas.ts b/src/firmware/sagas.ts index 214bfb4f..8e3669fb 100644 --- a/src/firmware/sagas.ts +++ b/src/firmware/sagas.ts @@ -751,7 +751,7 @@ function* handleFlashUsbDfu(action: ReturnType): Gen } // not expected - console.log(err); + console.error(err); }), );