diff --git a/bin/rtlcss.js b/bin/rtlcss.js index ce6214a..95e54cb 100644 --- a/bin/rtlcss.js +++ b/bin/rtlcss.js @@ -278,11 +278,23 @@ function main () { buffer += data }) process.on('SIGINT', () => { - processCSSFile(false, buffer) + try { + processCSSFile(false, buffer) + } catch (e) { + currentErrorcode = ErrorCodes.ProcessingError + printError('rtlcss: error processing payload') + printError(e) + } process.exit() }) process.stdin.on('end', () => { - processCSSFile(false, buffer) + try { + processCSSFile(false, buffer) + } catch (e) { + currentErrorcode = ErrorCodes.ProcessingError + printError('rtlcss: error processing payload') + printError(e) + } }) } }