diff options
Diffstat (limited to '')
-rw-r--r-- | src/golite.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/golite.go b/src/golite.go index 0229229..5648408 100644 --- a/src/golite.go +++ b/src/golite.go @@ -17,6 +17,8 @@ import ( "time" "unsafe" "syscall" + + gt "gotext" ) @@ -170,7 +172,7 @@ func newHandle(db *SQLiteConn, v any) unsafe.Pointer { val := handleVal{db: db, val: v} p := C.malloc(C.size_t(1)) if p == nil { - panic("can't allocate 'cgo-pointer hack index pointer': ptr == nil") + panic(gt.Gettext("can't allocate 'cgo-pointer hack index pointer': ptr == nil")) } { handleLock.Lock() |