Skip to content

Commit

Permalink
feat: print full stacktrace on error
Browse files Browse the repository at this point in the history
  • Loading branch information
mdubourg001 authored Feb 26, 2021
2 parents 22ecb19 + 0c71851 commit 5e57121
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ async function main() {
try {
await docker.version();
} catch (err) {
console.error(chalk.red(err));
console.error(chalk.red(err.stack));
console.error("Docker daemon does not seem to be running.");
process.exit(1);
}
Expand Down Expand Up @@ -275,7 +275,7 @@ async function main() {
console.log(chalk.bold(delimiter + "\n"));

const onerror = async (err, container) => {
if (err) console.error(chalk.red(err));
if (err) console.error(chalk.red(err.stack));
console.error(chalk.red("✘"), ` - ${name}\n`);

if (container) await container.stop();
Expand Down

0 comments on commit 5e57121

Please sign in to comment.