Skip to content

Commit 5344b96

Browse files
tristanlabellecompnerd
authored andcommitted
exit 1 when Start-Process throws
1 parent 9955d59 commit 5344b96

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

action.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,8 @@ runs:
211211
}
212212
} catch {
213213
$Duration = [math]::Round(($(Get-Date) - $StartTime).TotalSeconds, 2)
214-
Write-Host "Installation failed after $Duration seconds"
214+
Write-Host "Installation failed after $Duration seconds: $_"
215+
exit 1
215216
}
216217
}
217218

0 commit comments

Comments
 (0)