summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <m.shulhan@gmail.com>2020-09-04 02:04:33 +0700
committerShulhan <m.shulhan@gmail.com>2020-09-04 02:04:33 +0700
commita2c65037d1873fccc8d3efcc70f550429cc5d204 (patch)
tree847e8b21b48cfcec39ff67aca49e79abfdcd9857
parent24e61b633edb2ea7b6c67319f4ff4b2a4c366e9b (diff)
downloadrescached-a2c65037d1873fccc8d3efcc70f550429cc5d204.tar.xz
httpd: fix error return value when handling delete RR
-rw-r--r--httpd.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/httpd.go b/httpd.go
index 2360a4b..53d6a32 100644
--- a/httpd.go
+++ b/httpd.go
@@ -724,7 +724,7 @@ func (srv *Server) apiMasterFileDeleteRR(
if len(rr.Name) == 0 {
res.Message = "invalid or empty ResourceRecord.Name"
- return nil, err
+ return nil, res
}
// Remove the RR from caches.