Browse Source

fixed annoyance with exception handling, will have to be more robust in the future though

pull/10/head
nisstyre56 11 years ago
parent
commit
17dff62f1e
  1. 5
      parse.js

5
parse.js

@ -638,7 +638,12 @@ function parseFull(tokenized) {
} }
return ast; return ast;
} catch (e) { } catch (e) {
if (e.stxerror !== undefined) {
e.stxerror(); e.stxerror();
}
else {
console.log(e.errormessage);
}
process.exit(1); process.exit(1);
} }
} }

Loading…
Cancel
Save