Server-side expressions: Improve error message (#103968)

This error message is more correct
This commit is contained in:
Sam Jewell
2025-04-14 21:14:03 +00:00
committed by GitHub
parent 0283c98e30
commit 4aa7d67edd
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -44,7 +44,7 @@ func MakePublicQueryError(refID, err string) error {
return QueryError.Build(data)
}
var depErrStr = "did not execute expression [{{ .Public.refId }}] due to a failure to of the dependent expression or query [{{.Public.depRefId}}]"
var depErrStr = "did not execute expression [{{ .Public.refId }}] due to a failure of the dependent expression or query [{{.Public.depRefId}}]"
var dependencyError = errutil.BadRequest("sse.dependencyError").MustTemplate(
depErrStr,
@@ -56,7 +56,7 @@ func makeDependencyError(refID, depRefID string) error {
"refId": refID,
"depRefId": depRefID,
},
Error: fmt.Errorf("did not execute expression %v due to a failure to of the dependent expression or query %v", refID, depRefID),
Error: fmt.Errorf("did not execute expression %v due to a failure of the dependent expression or query %v", refID, depRefID),
}
return dependencyError.Build(data)