From 7157ef497a14f15d643a2b93ceee244701e575d5 Mon Sep 17 00:00:00 2001 From: Sarah Withee <2601974+geekygirlsarah@users.noreply.github.com> Date: Sat, 16 Oct 2021 23:32:50 -0400 Subject: [PATCH] Fix SyntaxError for unexpected token on console.error (#1410) --- bin/oref0-autotune-prep.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/oref0-autotune-prep.js b/bin/oref0-autotune-prep.js index 3a70bb075..8977a570a 100755 --- a/bin/oref0-autotune-prep.js +++ b/bin/oref0-autotune-prep.js @@ -103,8 +103,7 @@ if (!module.parent) { try { var glucose_data = JSON.parse(fs.readFileSync(glucose_input, 'utf8')); } catch (e) { - console.error("Warning: could not parse "+glucose_input); - return console.error("Warning: could not parse "+glucose_input", e); + return console.error("Warning: could not parse "+glucose_input, e); } var carb_data = { };