From 7b08e88782fe9162a862031088d099371bf7dac2 Mon Sep 17 00:00:00 2001 From: Andrew Kaiser Date: Tue, 25 Feb 2020 23:02:01 -0500 Subject: [PATCH] bug: login check captures when logged out now --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index b729eff..144646d 100644 --- a/src/index.js +++ b/src/index.js @@ -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