pybricksMicropython/lib: log parser errors

This makes it easier for users to diagnose errors.

Issue: https://github.com/pybricks/support/issues/873
This commit is contained in:
David Lechner
2022-12-22 13:21:02 -06:00
committed by David Lechner
parent 44512c9533
commit f083ad84ef
+2 -2
View File
@@ -99,8 +99,8 @@ export function findImportedModules(py: string): ReadonlySet<string> {
});
} catch (err) {
// istanbul ignore if
if (process.env.NODE_ENV === 'development') {
console.debug(err);
if (process.env.NODE_ENV !== 'test') {
console.error(err);
}
// files with syntax errors are ignored