summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5a11074)
raw | patch | inline | side by side (parent: 5a11074)
author | Sebastian Harl <sh@tokkee.org> | |
Sat, 21 Feb 2015 23:20:32 +0000 (00:20 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Sat, 21 Feb 2015 23:20:32 +0000 (00:20 +0100) |
server/query.go | patch | blob | history |
diff --git a/server/query.go b/server/query.go
index e303d93069a1d094e11489cb8677cef2aa634edc..6f9722c64a6c37130311bf3e15b9586039964764 100644 (file)
--- a/server/query.go
+++ b/server/query.go
return nil, fmt.Errorf("%s not found", strings.Title(req.cmd))
}
res, err = s.query("FETCH %s %s.%s", identifier(req.cmd), req.args[0], req.args[1])
- if req.cmd == "metric" {
+ if err == nil && req.cmd == "metric" {
return metric(req, res, s)
}
default: