SSE: Return error messages instead of 500 on SSE command parse errors (#109480)

fixes #108897

---------

Co-authored-by: Kyle Brandt <kyle@grafana.com>
This commit is contained in:
Ihor Yeromin
2025-09-02 18:00:14 +00:00
committed by GitHub
co-authored by Kyle Brandt
parent 76af73b3f3
commit bdf9583ada
4 changed files with 40 additions and 2 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ func UnmarshalMathCommand(rn *rawNode) (*MathCommand, error) {
gm, err := NewMathCommand(rn.RefID, exprString)
if err != nil {
return nil, fmt.Errorf("invalid math command type: %w", err)
return nil, fmt.Errorf("invalid math command: %w", err)
}
return gm, nil
}