Quote:
Originally Posted by katzenjoghurt
Thanks for your reply, Stax!
Hm. Is there any way I COULD check for it from command line?
|
Thanks for the feedback! I've reported the issue here:
https://forum.doom9.org/showthread.p...63#post1875863
It shows how to check for it in Windows batch:
echo %ERRORLEVEL%
I don't know if there are other ways, I've never learned windows batch because I always thought it's a very bad language.
In PowerShell I do it like this:
Code:
function CheckExitCode {
if ($LastExitCode -gt 0) {
Write-Host "`nExit code $LastExitCode was returned.`n" -ForegroundColor Red
exit
}
}
I've never verified that the code actually works, I hope it does, it's from a script I use to release mpv.net.