From 5c9e7c0ba2f845675f45fd03e1942374abf2554f Mon Sep 17 00:00:00 2001 From: Yvan Janssens Date: Thu, 6 Apr 2023 09:53:27 +0200 Subject: [PATCH] Fix error message output. --- define.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/define.go b/define.go index c9622db..6c67382 100644 --- a/define.go +++ b/define.go @@ -128,7 +128,7 @@ const CL_INIT_DEFAULT C.uint = C.CL_INIT_DEFAULT // Wraps the corresponding error message 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 }