Skip to content

Commit 437804c

Browse files
committed
Return evaluated result as string in EvaluateToStringExpression
1 parent 07b5dfd commit 437804c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/inputs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1040,7 +1040,7 @@ func EvaluateToStringExpression(ctx *ExecutionState, raw string) (string, error)
10401040

10411041
strRes, ok := res.(string)
10421042
if !ok {
1043-
return "", fmt.Errorf("expression did not evaluate to a string: %T", res)
1043+
return fmt.Sprintf("%v", res), nil
10441044
}
10451045

10461046
return strRes, nil

0 commit comments

Comments
 (0)