From 17dff62f1ed1652cad0ae5ff3565288e3fc0c80d Mon Sep 17 00:00:00 2001 From: nisstyre56 Date: Sun, 11 May 2014 02:25:23 -0400 Subject: [PATCH] fixed annoyance with exception handling, will have to be more robust in the future though --- parse.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/parse.js b/parse.js index b7bbda0..297b6b0 100755 --- a/parse.js +++ b/parse.js @@ -638,7 +638,12 @@ function parseFull(tokenized) { } return ast; } catch (e) { - e.stxerror(); + if (e.stxerror !== undefined) { + e.stxerror(); + } + else { + console.log(e.errormessage); + } process.exit(1); } }