Skip to content

Commit

Permalink
Print stacktrace on error
Browse files Browse the repository at this point in the history
  • Loading branch information
alexymik authored Feb 25, 2021
1 parent 22ecb19 commit 0c71851
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 0c71851

Please sign in to comment.