Skip to content

Commit

Permalink
Merge pull request #227 from usecannon/fix-print-skipped-step
Browse files Browse the repository at this point in the history
prevent printing of `object Object` on skipped step
  • Loading branch information
aminlatifi authored Jun 6, 2023
2 parents 344f440 + 194b8f4 commit 6793b5b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/cli/src/commands/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,11 @@ export async function build({
runtime.on(Events.PreStepExecute, (t, n, _c, d) => console.log(`${' '.repeat(d)}exec: ${t}.${n}`));
runtime.on(Events.SkipDeploy, (n, err, d) => {
partialDeploy = true;
console.log(`${' '.repeat(d)} -> skip ${n} (${err.toString()})`);
console.log(
`${' '.repeat(d)} -> skip ${n} (${
typeof err === 'object' && err.toString === Object.prototype.toString ? JSON.stringify(err) : err.toString()
})`
);
});

// Check for existing package
Expand Down

0 comments on commit 6793b5b

Please sign in to comment.