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:
co-authored by
Kyle Brandt
parent
76af73b3f3
commit
bdf9583ada
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user