Fix error message output.
This commit is contained in:
parent
f4a881a08a
commit
5c9e7c0ba2
@ -128,7 +128,7 @@ const CL_INIT_DEFAULT C.uint = C.CL_INIT_DEFAULT
|
|||||||
|
|
||||||
// Wraps the corresponding error message
|
// Wraps the corresponding error message
|
||||||
func Strerr(code ErrorCode) error {
|
func Strerr(code ErrorCode) error {
|
||||||
err := errors.New(fmt.Sprintf("Error %s", C.int(code)))
|
err := errors.New(fmt.Sprintf("Error %d", C.int(code)))
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user