Skip to content

Commit

Permalink
fix(semver): fix error message [object Object]
Browse files Browse the repository at this point in the history
  • Loading branch information
edbzn committed Feb 3, 2024
1 parent e26398a commit 8284417
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/semver/src/executors/version/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export default async function version(

// eslint-disable-next-line @typescript-eslint/no-explicit-any
function _toErrorMessage(error: any): string {
return error.stack ?? error.toString();
return error.stack ?? error.message ?? error.toString();
}

function _normalizeOptions(options: VersionBuilderSchema) {
Expand Down

0 comments on commit 8284417

Please sign in to comment.