Browse Source

Fix built + typo

Brendan Abolivier 7 years ago
parent
commit
192189f53b
Signed by: Brendan Abolivier <contact@brendanabolivier.com> GPG key ID: 8EF1500759F70623
2 changed files with 3 additions and 2 deletions
  1. 2
    1
      src/grafana/dashboards.go
  2. 1
    1
      src/pusher/webhook.go

+ 2
- 1
src/grafana/dashboards.go View File

167
 
167
 
168
 	if respBody.Status != "success" && isHttpUnknownError {
168
 	if respBody.Status != "success" && isHttpUnknownError {
169
 		// Get the dashboard's slug for logging
169
 		// Get the dashboard's slug for logging
170
-		slug, err := helpers.GetDashboardSlug(contentJSON)
170
+		var slug string
171
+		slug, err = helpers.GetDashboardSlug(contentJSON)
171
 		if err != nil {
172
 		if err != nil {
172
 			return
173
 			return
173
 		}
174
 		}

+ 1
- 1
src/pusher/webhook.go View File

109
 			logrus.WithFields(logrus.Fields{
109
 			logrus.WithFields(logrus.Fields{
110
 				"error":    err,
110
 				"error":    err,
111
 				"filename": fileToPush,
111
 				"filename": fileToPush,
112
-			}).Error("Failed push the file to Grafana")
112
+			}).Error("Failed to push the file to Grafana")
113
 
113
 
114
 			continue
114
 			continue
115
 		}
115
 		}