On Sun, Sep 20, 2020 at 7:44 PM Walter Weinmann <walter.weinm...@gmail.com>
wrote:

> Sorry - unfortunately I am a beginner.
>
> I have a Golang program that runs on an error and ends with panic(). When
> running on Windows 10 the value of ERRORLEVEL is 0, the same happens when
> the program is terminated with exit(1).
>
> What am I doing wrong?
>

Insufficient data. When I run a Go program that does `os.Exit(1)` in a
MSYS2 bash shell doing `echo $status` shows the value `1` as expected.
Running the same program inside a cmd.exe shell and then doing `echo
%ERRORLEVEL%` also reports `1` as expected.

-- 
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CABx2%3DD_%2BZ_ecFqfxJdtSMAwhzU_duFYspT8yrO01PnmUpwWEpw%40mail.gmail.com.

Reply via email to