Skip to content

Commit b5e969a

Browse files
committed
feat: throw access token check error explictly
1 parent 39befdd commit b5e969a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/command.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,8 @@ export default abstract class HackMDCommand extends Command {
1818
}
1919

2020
return APIClient
21-
} catch (e) {
22-
this.log('Please ensure your credentials are correct')
23-
this.error(e)
21+
} catch {
22+
throw new Error('Please ensure your credentials are correct')
2423
}
2524
}
26-
2725
}

0 commit comments

Comments
 (0)