Skip to content

Commit bba46b5

Browse files
authored
Merge pull request #17 from Padorax/fix-type
Fix error formatter in types for metric.Type
2 parents b65821f + 02fa49d commit bba46b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ginmetrics/types.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ func (m *Monitor) AddMetric(metric *Metric) error {
113113
m.metrics[metric.Name] = metric
114114
}
115115
}
116-
return errors.Errorf("metric type '%s' not existed.", metric.Type)
116+
return errors.Errorf("metric type '%d' not existed.", metric.Type)
117117
}
118118

119119
func counterHandler(metric *Metric) error {

0 commit comments

Comments
 (0)