Skip to content

Commit 3b9d6ad

Browse files
committed
refactor: tip for invalid logins
1 parent 438cfb0 commit 3b9d6ad

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ const loginCommand = async ({ email, password, endpoint, mfa, code }) => {
8181
} else {
8282
globalConfig.removeSession(id);
8383
globalConfig.setCurrentSession(oldCurrent);
84+
if(endpoint !== DEFAULT_ENDPOINT && error.response === 'user_invalid_credentials'){
85+
log('remember to use --endpoint for self-hosted instances')
86+
}
8487
throw error;
8588
}
8689
}

0 commit comments

Comments
 (0)