View Single Post
Old 1st June 2019, 13:35   #516  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
Quote:
Originally Posted by katzenjoghurt View Post
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.
stax76 is offline