mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-22 09:13:07 +02:00
MISC: Show user-friendly error message when there is syntax error in scripts (#1963)
This commit is contained in:
@@ -276,7 +276,7 @@ function Root(props: IProps): React.ReactElement {
|
||||
}
|
||||
let ast;
|
||||
try {
|
||||
ast = parseAST(newCode, getFileType(currentScript.path));
|
||||
ast = parseAST(currentScript.path, currentScript.hostname, newCode, getFileType(currentScript.path));
|
||||
makeModelsForImports(ast, server);
|
||||
} catch (error) {
|
||||
showRAMError({
|
||||
|
||||
Reference in New Issue
Block a user