perf: add error msg when applet task failed

This commit is contained in:
Eric
2024-10-24 14:50:47 +08:00
committed by Eric_Lee
parent 7c55c42582
commit b0dd8d044d
3 changed files with 22 additions and 1 deletions

View File

@@ -9,3 +9,10 @@
ansible.windows.win_powershell:
script: |
tinkerd uninstall --name {{ applet_name }}
$exitCode = $LASTEXITCODE
if ($exitCode -ne 0) {
Write-Host "Failed to uninstall {{ applet_name }}"
Write-Host "Exit code: $exitCode"
$Ansible.Failed = $true
exit 1
}