mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2024-11-22 14:33:51 +00:00
got rid of blank error msg when program halts normally
This commit is contained in:
parent
d3cac31c2f
commit
f3ed9191ee
@ -1106,14 +1106,16 @@ function showErrorAlert(errors : WorkerError[]) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function showExceptionAsError(err, msg:string) {
|
function showExceptionAsError(err, msg:string) {
|
||||||
var werr : WorkerError = {msg:msg, line:0};
|
if (msg != null) {
|
||||||
if (err instanceof EmuHalt && err.$loc) {
|
var werr : WorkerError = {msg:msg, line:0};
|
||||||
werr = Object.create(err.$loc);
|
if (err instanceof EmuHalt && err.$loc) {
|
||||||
werr.msg = msg;
|
werr = Object.create(err.$loc);
|
||||||
console.log(werr);
|
werr.msg = msg;
|
||||||
projectWindows.refresh(false);
|
console.log(werr);
|
||||||
|
projectWindows.refresh(false);
|
||||||
|
}
|
||||||
|
showErrorAlert([werr]);
|
||||||
}
|
}
|
||||||
showErrorAlert([werr]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var measureTimeStart : Date = new Date();
|
var measureTimeStart : Date = new Date();
|
||||||
|
Loading…
Reference in New Issue
Block a user