diff --git a/src/explorer/ApiOperationTreeItem.ts b/src/explorer/ApiOperationTreeItem.ts index b9568ca..c702b65 100644 --- a/src/explorer/ApiOperationTreeItem.ts +++ b/src/explorer/ApiOperationTreeItem.ts @@ -69,7 +69,7 @@ export class ApiOperationTreeItem extends AzExtParentTreeItem { await this.root.client.apiOperation.delete(this.root.resourceGroupName, this.root.serviceName, this.root.apiName, this.root.opName, '*'); }); // don't wait - window.showInformationMessage(localize("deletedOperation", `Successfully deleted API "${this.root.apiName}".`)); + window.showInformationMessage(localize("deletedOperation", `Successfully deleted API Operation "${this.root.opName}".`)); } else { throw new UserCancelledError(); diff --git a/src/explorer/editors/arm/BaseArmResourceEditor.ts b/src/explorer/editors/arm/BaseArmResourceEditor.ts index 9e8d678..2379d65 100644 --- a/src/explorer/editors/arm/BaseArmResourceEditor.ts +++ b/src/explorer/editors/arm/BaseArmResourceEditor.ts @@ -38,7 +38,7 @@ export abstract class BaseArmResourceEditor exte const payload = JSON.parse(data); const response = await this.updateDataInternal(context, payload); //await context.refresh(); - window.showInformationMessage(localize("updateSucceded", `Changes to ${this.entityType} were succefully uploaded to cloud.`)); + window.showInformationMessage(localize("updateSucceded", `Changes to ${this.entityType} were successfully uploaded to cloud.`)); return JSON.stringify(response, null, "\t"); } catch (error) { throw new Error(processError(error, localize("updateFailed", `Changes to ${this.entityType} could not be uploaded to cloud.`))); diff --git a/src/explorer/editors/openApi/OpenApiEditor.ts b/src/explorer/editors/openApi/OpenApiEditor.ts index 42ac1e8..4f7e32b 100644 --- a/src/explorer/editors/openApi/OpenApiEditor.ts +++ b/src/explorer/editors/openApi/OpenApiEditor.ts @@ -78,7 +78,7 @@ export class OpenApiEditor extends Editor { }, async () => context.root.client.api.beginCreateOrUpdateAndWait(context.root.resourceGroupName, context.root.serviceName, context.root.apiName, payload) ).then(async () => { - window.showInformationMessage(localize("updateOpenApiSucceded", `Changes to API '${context.apiContract.name}' were succefully uploaded to cloud.`)); + window.showInformationMessage(localize("updateOpenApiSucceded", `Changes to API '${context.apiContract.name}' were successfully uploaded to cloud.`)); //await context.refresh(); return this.getData(context); }); diff --git a/src/utils/errorUtil.ts b/src/utils/errorUtil.ts index 5336701..25a756f 100644 --- a/src/utils/errorUtil.ts +++ b/src/utils/errorUtil.ts @@ -24,7 +24,7 @@ export function processError(error: any, message: string) : string { message = err.message; if (err.errorType.toLowerCase() === 'validationerror') { // tslint:disable-next-line: no-unsafe-any - message = errorUtil(error.response.body); + message = errorUtil(error.response.bodyAsText); } } catch (e) { ext.outputChannel.appendLine("Could not parse error.");