You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -57,6 +98,16 @@ func getExitCode(err error) int {
57
98
iferr==nil {
58
99
return0
59
100
}
101
+
102
+
varuserTerminatedErrerrCtxSignalTerminated
103
+
iferrors.As(err, &userTerminatedErr) {
104
+
s, ok:=userTerminatedErr.signal.(syscall.Signal)
105
+
if!ok {
106
+
return1
107
+
}
108
+
return128+int(s)
109
+
}
110
+
60
111
varstErr cli.StatusError
61
112
iferrors.As(err, &stErr) &&stErr.StatusCode!=0 { // FIXME(thaJeztah): StatusCode should never be used with a zero status-code. Check if we do this anywhere.
0 commit comments