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:
David Lechner
2022-10-19 18:26:37 -05:00
committed by David Lechner
parent e5ab52b250
commit 7e726fffaf
10 changed files with 159 additions and 0 deletions
+10
View File
@@ -206,6 +206,16 @@ function* handleDownloadAndRun(action: ReturnType<typeof downloadAndRun>): Gener
});
if (didFailToCompile) {
yield* put(
alertsShowAlert(
'mpy',
'compilerError',
{
error: didFailToCompile.error,
},
'mpy.compilerError',
),
);
return;
}