Re: [go-nuts] ERRORLEVEL issue

2020-09-21 Thread Walter Weinmann
This simple version is working - it seems to be a more specific issue. On Monday, 21 September 2020 at 09:37:57 UTC+2 b.ca...@pobox.com wrote: > On Monday, 21 September 2020 07:51:19 UTC+1, Walter Weinmann wrote: >> >> Same problem with os.Exit(1). >> >> > Are y

Re: [go-nuts] ERRORLEVEL issue

2020-09-21 Thread Walter Weinmann
panic("WTF")` and it results in an exit status (ERRORLEVEL) of two in both >>> a MSYS2 bash shell and a native cmd.exe shell. So, it is likely you are not >>> testing what you think you are testing. >>> >>> On Sun, Sep 20, 2020 at 7:44 PM Walter Weinmann >

Re: [go-nuts] ERRORLEVEL issue

2020-09-20 Thread Walter Weinmann
On Sun, Sep 20, 2020 at 7:44 PM Walter Weinmann > 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 >&g

[go-nuts] ERRORLEVEL issue

2020-09-20 Thread Walter Weinmann
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? -- You received this message because you a