From 2247c0835d6dd50c6462e21c211f1734bab734be Mon Sep 17 00:00:00 2001 From: asmsuechan Date: Thu, 10 Aug 2017 09:54:56 +0900 Subject: [PATCH] Ignore any errors in ~/.boostnoterc --- browser/main/lib/RcParser.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/browser/main/lib/RcParser.js b/browser/main/lib/RcParser.js index 6653847f..bd3eb425 100644 --- a/browser/main/lib/RcParser.js +++ b/browser/main/lib/RcParser.js @@ -14,7 +14,12 @@ function exec (boostnotercPath) { const config = this.parse(boostnotercPath) if (config.execs === undefined) return _.forEach(config.execs, (exec) => { - eval(exec) + try { + eval(exec) + } catch (e) { + // Ignore any errors in ~/.boostnoterc + console.log(e) + } }) }