Skip to content

Commit f083ad8

Browse files
committed
pybricksMicropython/lib: log parser errors
This makes it easier for users to diagnose errors. Issue: pybricks/support#873
1 parent 44512c9 commit f083ad8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pybricksMicropython/lib.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ export function findImportedModules(py: string): ReadonlySet<string> {
9999
});
100100
} catch (err) {
101101
// istanbul ignore if
102-
if (process.env.NODE_ENV === 'development') {
103-
console.debug(err);
102+
if (process.env.NODE_ENV !== 'test') {
103+
console.error(err);
104104
}
105105

106106
// files with syntax errors are ignored

0 commit comments

Comments
 (0)