From d59d1cb2c1be4c3d8649eaec9ad9b2a4d700d2d3 Mon Sep 17 00:00:00 2001 From: Fabian Reinartz Date: Fri, 1 May 2015 17:58:58 +0200 Subject: [PATCH] Fix Error() methods. --- promql/engine.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/promql/engine.go b/promql/engine.go index 945eca6c74..7d3cc58dd7 100644 --- a/promql/engine.go +++ b/promql/engine.go @@ -165,8 +165,8 @@ type ( ErrQueryCanceled string ) -func (e ErrQueryTimeout) Error() string { return fmt.Sprintf("query timed out in %s", e) } -func (e ErrQueryCanceled) Error() string { return fmt.Sprintf("query was canceled in %s", e) } +func (e ErrQueryTimeout) Error() string { return fmt.Sprintf("query timed out in %s", string(e)) } +func (e ErrQueryCanceled) Error() string { return fmt.Sprintf("query was canceled in %s", string(e)) } // A Query is derived from an a raw query string and can be run against an engine // it is associated with.