Skip to content

Commit b68f242

Browse files
committed
check_tasksched: return real error code
1 parent 22fc6e6 commit b68f242

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/snclient/check_tasksched_windows.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ func (r TaskResult) String() string {
130130
}
131131

132132
//nolint:mnd // enumerated exit codes
133-
func (r TaskResult) exitCode() int32 {
133+
func (r TaskResult) exitCode() uint32 {
134134
switch r {
135135
case TaskResSuccess:
136136
return 0
@@ -159,7 +159,7 @@ func (r TaskResult) exitCode() int32 {
159159
case TaskResQueued:
160160
return 12
161161
default:
162-
return -1
162+
return uint32(r)
163163
}
164164
}
165165

0 commit comments

Comments
 (0)