Skip to content

Commit

Permalink
include stack trace when printing error message if a seeder fails (#411)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaltepet authored and sushantdhiman committed Jan 13, 2017
1 parent 525692a commit da85e74
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/tasks/db.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
});
Expand Down Expand Up @@ -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);
});
});
Expand Down Expand Up @@ -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);
});
});
Expand Down Expand Up @@ -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);
});
});
Expand Down

0 comments on commit da85e74

Please sign in to comment.