Alerting: Support Unwrap for QueryError in expr package (#41743)

This commit is contained in:
George Robinson
2021-11-17 10:07:24 +00:00
committed by GitHub
parent 2319c52c85
commit 708bdc80cb
2 changed files with 31 additions and 1 deletions
+4
View File
@@ -28,6 +28,10 @@ func (e QueryError) Error() string {
return fmt.Sprintf("failed to execute query %s: %s", e.RefID, e.Err)
}
func (e QueryError) Unwrap() error {
return e.Err
}
// baseNode includes common properties used across DPNodes.
type baseNode struct {
id int64