Skip to content

Commit 66a77a6

Browse files
committed
Exit without stack trace noise on color-token lint failure
1 parent 77bdb21 commit 66a77a6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/lint-colors.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ function run () {
156156
}
157157

158158
if (failed) {
159-
throw new Error('FlowFuse color-token lint failed.')
159+
error('FlowFuse color-token lint failed.')
160+
process.exit(1)
160161
}
161162

162163
log('✓ no banned color references')

0 commit comments

Comments
 (0)