mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 17:45:22 +00:00
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:
committed by
David Lechner
parent
44512c9533
commit
f083ad84ef
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user