Skip to content

Commit

Permalink
[cli] changing format of error a little bit
Browse files Browse the repository at this point in the history
  • Loading branch information
ochaloup committed Jun 13, 2024
1 parent 0ab6244 commit 236f6be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/lib/cli-common/src/error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ export class CliCommandError extends ExecutionError {
}
let errorMessage: string
if (valueName) {
errorMessage = format('%s[%s=%s]: %s', commandName, valueName, value, msg)
errorMessage = format('%s [%s=%s]: %s', commandName, valueName, value, msg)

Check failure on line 34 in packages/lib/cli-common/src/error.ts

View workflow job for this annotation

GitHub Actions / build (16)

Replace `'%s·[%s=%s]:·%s',·commandName,·valueName,·value,·msg` with `⏎········'%s·[%s=%s]:·%s',⏎········commandName,⏎········valueName,⏎········value,⏎········msg⏎······`
} else {
errorMessage = format('%s:%s', commandName, msg)
errorMessage = format('%s: %s', commandName, msg)
}
super({ msg: errorMessage, cause, logs, transaction })
}
Expand Down

0 comments on commit 236f6be

Please sign in to comment.