From da85e743f0114858943512c9f669f8bfe9d2d09b Mon Sep 17 00:00:00 2001 From: Andy Date: Thu, 12 Jan 2017 23:57:25 -0600 Subject: [PATCH] include stack trace when printing error message if a seeder fails (#411) --- lib/tasks/db.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/tasks/db.js b/lib/tasks/db.js index d0eb1113..6fbeb998 100644 --- a/lib/tasks/db.js +++ b/lib/tasks/db.js @@ -67,7 +67,7 @@ module.exports = { process.exit(0); }) .catch(function (err) { - console.error('Seed file failed with error:', err.message); + console.error('Seed file failed with error:', err.message, err.stack); process.exit(1); }); }); @@ -96,7 +96,7 @@ module.exports = { process.exit(0); }) .catch(function (err) { - console.error('Seed file failed with error:', err.message); + console.error('Seed file failed with error:', err.message, err.stack); process.exit(1); }); }); @@ -125,7 +125,7 @@ module.exports = { process.exit(0); }) .catch(function (err) { - console.error('Seed file failed with error:', err.message); + console.error('Seed file failed with error:', err.message, err.stack); process.exit(1); }); }); @@ -158,7 +158,7 @@ module.exports = { process.exit(0); }) .catch(function (err) { - console.error('Seed file failed with error:', err.message); + console.error('Seed file failed with error:', err.message, err.stack); process.exit(1); }); });