aboutsummaryrefslogtreecommitdiff
path: root/src/stm.go
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2025-05-27 03:09:03 -0300
committerEuAndreh <eu@euandre.org>2025-05-27 03:09:03 -0300
commitcb89a691031acd7beac798a74d174b572b22319e (patch)
tree68e0c5b78dcf8cdd54041ff460cfd2e91f953751 /src/stm.go
parentmeta.capim: Add with :dependencies key (diff)
downloadstm-cb89a691031acd7beac798a74d174b572b22319e.tar.gz
stm-cb89a691031acd7beac798a74d174b572b22319e.tar.xz
Update to latest project skeleton: i18n and fine-grained fuzzingHEADmain
Diffstat (limited to '')
-rw-r--r--src/stm.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/stm.go b/src/stm.go
index 6aa6fae..8cf1390 100644
--- a/src/stm.go
+++ b/src/stm.go
@@ -90,6 +90,7 @@ import (
"unsafe"
"pds"
+ gt "gotext"
)
@@ -135,7 +136,7 @@ func New[T any](seed T) *Value[T] {
func (v *Value[T]) Load() (out T) {
value := v.value.Load()
if value == nil {
- panic("nil value in atomic.Value")
+ panic(gt.Gettext("nil value in atomic.Value"))
}
return value.(T)
}