Skip to content

Commit

Permalink
Merge pull request #107 from elezar/remove-panic
Browse files Browse the repository at this point in the history
Return ERROR_UNKNOWN instead of panicing
  • Loading branch information
ArangoGutierrez authored Apr 4, 2024
2 parents 5362631 + aa9e73e commit f3a57ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/nvml/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func Shutdown() Return {

err := libnvml.close()
if err != nil {
panic(err)
return ERROR_UNKNOWN
}

return ret
Expand Down

0 comments on commit f3a57ee

Please sign in to comment.