From cb89a691031acd7beac798a74d174b572b22319e Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Tue, 27 May 2025 03:09:03 -0300 Subject: Update to latest project skeleton: i18n and fine-grained fuzzing --- src/stm.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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) } -- cgit v1.2.3