yats.git

commit d0080a018c595c22ad6ab9ed2f57ec8a2f0ca006

Author: Paolo Lulli <paolo@lulli.net>

Debug error

 server/rest/rest-metric.go | 2 +-


diff --git a/server/rest/rest-metric.go b/server/rest/rest-metric.go
index deda405937fac497431c29b9e84b68c77635f149..89be4a2fd1629dd3abc4f6f0101209ff2f152b09 100644
--- a/server/rest/rest-metric.go
+++ b/server/rest/rest-metric.go
@@ -81,7 +81,7 @@ 		clientCN := GetClientCN(c, cfg)
 
 		if metric.SourceApplication != "" {
 			if !db.CanReadSourceMetric(clientCN, metric.SourceApplication, metric.Name) {
-				c.IndentedJSON(http.StatusAccepted, gin.H{"ret": "-1"})
+				c.IndentedJSON(http.StatusAccepted, gin.H{"ret": "-2"})
 			}
 			clientCN = metric.SourceApplication
 		}