Skip to content

Commit 11601ed

Browse files
committed
Show snap message in 'Add OpenShift Cluser' editor only for errors
This PR fixes #2168. Signed-off-by: Denis Golovin dgolovin@redhat.com
1 parent 8130e3f commit 11601ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/webview/cluster/clusterViewLoader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export default class ClusterViewLoader {
162162
const result = await CliChannel.getInstance().execute(`${filePath} status -ojson`);
163163
channel.append(`\n\n${filePath} status -ojson\n`);
164164
channel.append(result.stdout);
165-
if (result.stderr || crcVerInfo.stderr) {
165+
if (result.error || crcVerInfo.error) {
166166
p.webview.postMessage({action: postCommand, errorStatus: true});
167167
} else {
168168
p.webview.postMessage({

0 commit comments

Comments
 (0)