fix exception message formatting (#2546)

Co-authored-by: stas <statis@microsoft.com>
This commit is contained in:
Stas 2022-10-21 08:32:57 -07:00 committed by GitHub
parent d10740ab4c
commit 9600c5c873
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -515,7 +515,7 @@ public class VmssOperations : IVmssOperations {
public async Async.Task DeleteNodes(Guid scalesetId, IReadOnlySet<Guid> machineIds) { public async Async.Task DeleteNodes(Guid scalesetId, IReadOnlySet<Guid> machineIds) {
var result = await CheckCanUpdate(scalesetId); var result = await CheckCanUpdate(scalesetId);
if (!result.IsOk) { if (!result.IsOk) {
throw new Exception($"cannot delete nodes from scaleset {scalesetId:Tag:ScalesetId}: {result.ErrorV:Tag:Error}"); throw new Exception($"cannot delete nodes from scaleset {scalesetId} : {result.ErrorV}");
} }
var instanceIds = new HashSet<string>(); var instanceIds = new HashSet<string>();