aboutsummaryrefslogtreecommitdiff
path: root/src/stm.go
diff options
context:
space:
mode:
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)
}