Skip to content

Commit 5af9c7a

Browse files
authored
Improve error messaging for Studio Actions (#784)
1 parent 34fe749 commit 5af9c7a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/commands/studio.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,10 +316,14 @@ class StudioActions {
316316
})
317317
.then(() => resolve())
318318
.catch((err) => {
319-
console.log(err);
320319
outputChannel.appendLine(
321-
`Studio Action "${action.label}" not supported on ${this.api.config.host}:${this.api.config.port}[${this.api.config.ns}]`
320+
`Executing Studio Action "${action.label}" on ${this.api.config.host}:${this.api.config.port}[${
321+
this.api.config.ns
322+
}] failed${err.errorText && err.errorText !== "" ? " with the following error:" : "."}`
322323
);
324+
if (err.errorText && err.errorText !== "") {
325+
outputChannel.appendLine("\n" + err.errorText);
326+
}
323327
outputChannel.show();
324328
reject();
325329
});

0 commit comments

Comments
 (0)