Skip to content
This repository was archived by the owner on Feb 1, 2022. It is now read-only.

Commit f10be7d

Browse files
committed
fix: use old error style
1 parent e0394f6 commit f10be7d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {inspect} from 'util'
88
import {CLI} from '.'
99
import {ErrorMessage, Message} from './message'
1010

11-
const arrow = process.platform === 'win32' ? ' ×' : ' '
11+
const arrow = process.platform === 'win32' ? ' !' : ' '
1212

1313
function bangify(msg: string, c: string): string {
1414
const lines = msg.split('\n')

test/errors.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ beforeEach(() => {
1010
describe.stderr('errors', () => {
1111
it('warns', () => {
1212
cli.warn('foobar')
13-
expect(output.stderr).to.equal(' foobar\n')
13+
expect(output.stderr).to.equal(' foobar\n')
1414
})
1515

1616
it('errors', () => {
1717
expect(() => cli.error('foobar')).to.throw(/foobar/)
18+
expect(output.stderr).to.equal(' ▸ foobar\n')
1819
})
1920
})

0 commit comments

Comments
 (0)