Commit 0708ad6d by kzc Committed by Marijn Haverbeke

fix annotated errors for stdin input (#155)

parent 9eddd4f0
Pipeline #5379048 passed with stage
in 2 minutes 43 seconds
......@@ -131,8 +131,12 @@ module.exports = function ( command ) {
});
process.stdin.on( 'end', function () {
var result = buble.transform( source, options );
write( result, null, command );
try {
var result = buble.transform( source, options );
write( result, null, command );
} catch ( err ) {
handleError( err );
}
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment