Skip to content

Commit af04584

Browse files
committed
fix(cli): Error when no accounts in logout
1 parent de1703f commit af04584

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

templates/cli/lib/commands/generic.js.twig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,8 @@ const logout = new Command("logout")
188188
const sessions = globalConfig.getSessions();
189189
const current = globalConfig.getCurrentSession();
190190

191-
if (current === '') {
191+
if (current === '' || !sessions.length) {
192+
log('No accounts were located');
192193
return;
193194
}
194195
if (sessions.length === 1) {

0 commit comments

Comments
 (0)