Skip to content

Commit

Permalink
fix: fix the confusing logs in Windows VHD build (#3957)
Browse files Browse the repository at this point in the history
  • Loading branch information
AbelHu authored Jan 10, 2024
1 parent 23a5e87 commit c10dfda
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vhdbuilder/packer/configure-windows-vhd.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,12 @@ function Retry-Command {
}
return
} catch {
Write-Error $_.Exception.InnerException.Message -ErrorAction Continue
Write-Log $_.Exception.InnerException.Message
if ($_.Exception.InnerException.Message.Contains("There is not enough space on the disk. (0x70)")) {
Write-Error "Exit retry since there is not enough space on the disk"
break
}
Write-Log "Retry $cnt : $ScriptBlock"
Start-Sleep $Delay
}
} while ($cnt -lt $Maximum)
Expand Down

0 comments on commit c10dfda

Please sign in to comment.