Skip to content

Commit f3a57ee

Browse files
Merge pull request #107 from elezar/remove-panic
Return ERROR_UNKNOWN instead of panicing
2 parents 5362631 + aa9e73e commit f3a57ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/nvml/init.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func Shutdown() Return {
4141

4242
err := libnvml.close()
4343
if err != nil {
44-
panic(err)
44+
return ERROR_UNKNOWN
4545
}
4646

4747
return ret

0 commit comments

Comments
 (0)