diff options
Diffstat (limited to 'src/stm.go')
-rw-r--r-- | src/stm.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) } |