output needs to be a string
This commit is contained in:
		| @@ -213,7 +213,7 @@ func tmpltTPlinkPost(w http.ResponseWriter, r *http.Request) { | |||||||
| 	// unmarshal body | 	// unmarshal body | ||||||
| 	err = json.Unmarshal(b, &payload) | 	err = json.Unmarshal(b, &payload) | ||||||
| 	if err != nil { | 	if err != nil { | ||||||
| 		log.Printf("[TRACE] Data received: %#v\n", string(b)) | 		log.Printf("[TRACE] Data received:\n--START--\n%s\n--END--\n", string(b)) | ||||||
| 		log.Printf("[INFO] Unable to parse payload from API call: %v\n", err) | 		log.Printf("[INFO] Unable to parse payload from API call: %v\n", err) | ||||||
| 		tmpltError(w, http.StatusInternalServerError, fmt.Sprintf("Unable to read info from device: %v\n", err)) | 		tmpltError(w, http.StatusInternalServerError, fmt.Sprintf("Unable to read info from device: %v\n", err)) | ||||||
| 		return | 		return | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user