mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 17:45:22 +00:00
use console.error instead of console.log for unexpected errors
This commit is contained in:
committed by
David Lechner
parent
b8a1c70536
commit
f4598db3a4
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -751,7 +751,7 @@ function* handleFlashUsbDfu(action: ReturnType<typeof firmwareFlashUsbDfu>): Gen
|
||||
}
|
||||
|
||||
// not expected
|
||||
console.log(err);
|
||||
console.error(err);
|
||||
}),
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user