Browse Source

bug: login check captures when logged out now

master
Andrew Kaiser 5 years ago
parent
commit
7b08e88782
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/index.js

+ 1
- 1
src/index.js View File

@ -16,7 +16,7 @@ const isLoggedIn = async () => {
try {
bwRun('login', '--check')
} catch (e) {
if (e instanceof CommandError && e.stdout === 'You are not logged in.') {
if (e instanceof CommandError && e.stderr === 'You are not logged in.') {
return false
} else {
throw e


Loading…
Cancel
Save