mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-14 18:46:17 +00:00
mpy/alerts: implement compiler error
This shows the output from mpy-cross and has a button to go to the error.
This commit is contained in:
committed by
David Lechner
parent
e5ab52b250
commit
7e726fffaf
@@ -206,6 +206,16 @@ function* handleDownloadAndRun(action: ReturnType<typeof downloadAndRun>): Gener
|
||||
});
|
||||
|
||||
if (didFailToCompile) {
|
||||
yield* put(
|
||||
alertsShowAlert(
|
||||
'mpy',
|
||||
'compilerError',
|
||||
{
|
||||
error: didFailToCompile.error,
|
||||
},
|
||||
'mpy.compilerError',
|
||||
),
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user