Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mdzio committed Aug 11, 2024
1 parent 1a4ef35 commit 688d9e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virtdev/mqtt.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ func (e *extractorTmpl) Extract(payload []byte) (float64, error) {
sval := strings.TrimSpace(sb.String())
fval, err := strconv.ParseFloat(sval, 64)
if err != nil {
return 0.0, fmt.Errorf("Template returned invalid number literal: %s", sb.String())
return 0.0, fmt.Errorf("Template returned invalid number literal '%s'", sb.String())
}
return fval, nil
}
Expand Down

0 comments on commit 688d9e7

Please sign in to comment.