From 062fdfb12cbaac45ee31af092ce8a634654f6488 Mon Sep 17 00:00:00 2001 From: Ibrahim Islam Date: Sun, 9 Oct 2016 01:22:20 +0600 Subject: [PATCH] Nice error when the boilerplate does not exist Give a nice error when boilerplate folder is deleted Issue #3 --- lib/wilfred.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/wilfred.js b/lib/wilfred.js index d1f2dc5..ef00b4e 100644 --- a/lib/wilfred.js +++ b/lib/wilfred.js @@ -107,7 +107,7 @@ class Wilfred { let bp = this.config.boilerplates.find(item => item.boilerplate === options.boilerplate), execCopy = (from, to) => { fs.copy(from, to, (err) => { - if (err) return console.error(err) + if (err) return console.error(`Boilerplate ${options.boilerplate} does not exist at the expected path ${err.path}`) !program.silent && console.log('Boilerplate copied to destination!') this.postCopy(to) })