aboutsummaryrefslogtreecommitdiff
path: root/src/golite.go
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2025-05-27 20:58:35 -0300
committerEuAndreh <eu@euandre.org>2025-05-29 05:44:21 -0300
commit170dfdf2783c8c2431861f77193c92f40860ea07 (patch)
tree8769850dae369cef1e1decd2d8ed8d394773d98f /src/golite.go
parentmeta.capim: Add with :dependencies key (diff)
downloadgolite-main.tar.gz
golite-main.tar.xz
Update to latest project skeleton: i18n and fine-grained fuzzingHEADmain
Diffstat (limited to '')
-rw-r--r--src/golite.go4
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()