From 23cd52885b8a08d6bf453a7c284a86ae4681d210 Mon Sep 17 00:00:00 2001 From: hacksalot Date: Mon, 18 Jan 2016 19:21:25 -0500 Subject: [PATCH] Swallow inline failures in CONVERT. --- src/verbs/convert.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/verbs/convert.js b/src/verbs/convert.js index 1cb968b..f715298 100644 --- a/src/verbs/convert.js +++ b/src/verbs/convert.js @@ -61,9 +61,15 @@ Implementation of the 'convert' verb for HackMyResume. // Load the resume var rinfo = ResumeFactory.loadOne( src, { - format: null, objectify: true, throw: true + format: null, objectify: true, throw: false }); + // If a load error occurs, report it and move on to the next file (if any) + if( rinfo.fluenterror ) { + this.err( rinfo.fluenterror, rinfo ); + return; + } + var s = rinfo.rez , srcFmt = ((s.basics && s.basics.imp) || s.imp).orgFormat === 'JRS' ? 'JRS' : 'FRESH'