Skip to content

Commit 0cf2fea

Browse files
committed
Trim trailing whitespace from input error messages
1 parent 7dee757 commit 0cf2fea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/check-input.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ export function checkCommandInput(
6464
serializeResultJson({
6565
ok: false,
6666
message: 'Input error',
67-
data: stripAnsi(msg.join('\n')),
67+
data: stripAnsi(msg.join('\n').trim()),
6868
}),
6969
)
7070
} else {
71-
logger.fail(failMsgWithBadge('Input error', msg.join('\n')))
71+
logger.fail(failMsgWithBadge('Input error', msg.join('\n').trim()))
7272
}
7373

7474
return false

0 commit comments

Comments
 (0)