diff --git a/text/context.go b/text/context.go index 388d6a436e1b..a0f304ba7171 100644 --- a/text/context.go +++ b/text/context.go @@ -9,7 +9,7 @@ import ( func context(ctx map[string]any) []byte { if len(ctx) == 0 { - return []byte("{}") + panic("context must not be empty") } res, err := json.Marshal(ctx) if err != nil {