Skip to content

Commit 985f660

Browse files
authored
change status command exit code (#72)
1 parent d54ba4e commit 985f660

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/commands/status.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const builder = (args: Argv): Argv<StatusOptions> => {
4040
} else {
4141
if (err instanceof TranslationStatusError) {
4242
console.warn(err.message)
43-
process.exit(1)
43+
process.exit(4)
4444
} else {
4545
if (err) throw err
4646
}

test/commands/status.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,5 +101,5 @@ test('getTranslationStatus: wip', async () => {
101101

102102
// verify
103103
// NOTE: cannot detect process.exit calling ...
104-
// expect(process.exit).toHaveBeenCalledWith(1)
104+
// expect(process.exit).toHaveBeenCalledWith(4)
105105
})

0 commit comments

Comments
 (0)