From 17000061b0d7f9826dbe14a8b7c9ca742f4dd72d Mon Sep 17 00:00:00 2001 From: Mohammad Fares Date: Sun, 14 Oct 2018 21:56:57 +0300 Subject: [PATCH] Remove extra code for error handling in the command --- commands/render.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/commands/render.js b/commands/render.js index 383bfaf..8259dc2 100644 --- a/commands/render.js +++ b/commands/render.js @@ -347,11 +347,7 @@ function command(argv) { done(outputFile); - }).catch(function(error) { - - di.errorHandler(error.message); - - }); + }).catch(di.errorHandler); }