We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a906f27 commit cee8439Copy full SHA for cee8439
dev/src/microclimate/project/Requester.ts
@@ -170,7 +170,8 @@ namespace Requester {
170
171
// If the server provided a specific message, present the user with that,
172
// otherwise show them the whole error (but it will be ugly)
173
- const errMsg = err.error ? err.error : err;
+ // err.error.msg, then err.error, then the whole err
174
+ const errMsg: string = err.error ? (err.error.msg ? err.error.msg : err.error) : JSON.stringify(err);
175
vscode.window.showErrorMessage(
176
Translator.t(STRING_NS, "requestFail",
177
{ operationName: userOperationName, projectName: project.name, err: errMsg })
0 commit comments