Dnia 2020-09-20, o godz. 23:51:19
Walter Weinmann napisał(a):
> [image: Screenshot 2020-09-21 084403.png]
> [image: Screenshot 2020-09-21 084604.png]
> [image: Screenshot 2020-09-21 084819.png]
Please DO NOT post screenshots of text to this list.
@ Tamás Gulácsi, @ Brian Candler, @ Kurtis Rade
Are you making an explicit call to panic(), or is it a crash from inside
some cgo? If you are calling panic() is it from somewhere unusual like a
signal handler?
I tried a small cgo program to fault and it still exited with code 1 (under
macOS anyway) - incidentally the word "panic" doesn't ap
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 you saying that if you run this pr
On Monday, 21 September 2020 07:51:19 UTC+1, Walter Weinmann wrote:
>
> Same problem with os.Exit(1).
>
>
Are you saying that if you run this program:
package main
import "os"
func main() {
os.Exit(1)
}
you see the %ERRORLEVEL% is 0?
Under Linux, calling os.Exit(1) also prints the message "e
I'm not - sec_go is a directory:
[image: Screenshot 2020-09-21 091724.png]
This looks as expected ?
On Mon, 21 Sep 2020 at 09:15, Tamás Gulácsi wrote:
> You're building src_go.exe (-o of go build), and running orabench.exe.
>
>
> walter@gmail.com a következőt írta (2020. szeptember 21., hé
You're building src_go.exe (-o of go build), and running orabench.exe.
walter@gmail.com a következőt írta (2020. szeptember 21., hétfő,
8:51:19 UTC+2):
> My code is here:
>
> [image: Screenshot 2020-09-21 084403.png]
>
> My script is here:
>
>
> [image: Screenshot 2020-09-21 084604.png]
>
>
My code is here:
[image: Screenshot 2020-09-21 084403.png]
My script is here:
[image: Screenshot 2020-09-21 084604.png]
Logfile:
[image: Screenshot 2020-09-21 084819.png]
Same problem with os.Exit(1).
What am I doing wrong?
On Monday, 21 September 2020 at 05:38:11 UTC+2 Kurtis Rader wrote:
I also wrote a trivial Go program that did nothing more than `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 Weinma
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
> the program is terminated with exit(1).
>
> W
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
10 matches
Mail list logo