if no error location is avaliable
if no error location is avaliable gui does not show any error. It falls sliently
This commit is contained in:
parent
b03b785b62
commit
d65276badc
@ -148,17 +148,16 @@ export default function Modal({
|
||||
database: database === DB.GENERIC ? importDb : database,
|
||||
});
|
||||
} catch (err) {
|
||||
let message = err.message;
|
||||
if (err.location) {
|
||||
message = err.name + " [Ln " + err.location.start.line + ", Col " + err.location.start.column + "]: " + err.message;
|
||||
}
|
||||
|
||||
setError({
|
||||
type: STATUS.ERROR,
|
||||
message:
|
||||
err.name +
|
||||
" [Ln " +
|
||||
err.location.start.line +
|
||||
", Col " +
|
||||
err.location.start.column +
|
||||
"]: " +
|
||||
err.message,
|
||||
message
|
||||
});
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user