Skip to content

Commit 7b94e42

Browse files
committed
Throw error when login credentials are incorrect
Signed-off-by: Jessica He <jhe@redhat.com>
1 parent 8ac9ff6 commit 7b94e42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/openshift/cluster.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ export class Cluster extends OpenShiftItem {
430430
try {
431431
const result = await Progress.execFunctionWithProgress(
432432
`Login to the cluster: ${clusterURL}`,
433-
() => Cluster.cli.executeTool(Command.odoLoginWithUsernamePassword(clusterURL, username, passwd)));
433+
() => Cluster.cli.executeTool(Command.odoLoginWithUsernamePassword(clusterURL, username, passwd), undefined, true));
434434
await Cluster.save(username, passwd, password, result);
435435
return await Cluster.loginMessage(clusterURL, result);
436436
} catch (error) {

0 commit comments

Comments
 (0)