浏览代码

Merge pull request #50 from wadey/patch-1

Fix infinite loop in DuplicateMetric.Error
Richard Crowley 11 年之前
父节点
当前提交
c3fec5ef7b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      registry.go

+ 1 - 1
registry.go

@@ -12,7 +12,7 @@ import (
 type DuplicateMetric string
 type DuplicateMetric string
 
 
 func (err DuplicateMetric) Error() string {
 func (err DuplicateMetric) Error() string {
-	return fmt.Sprintf("duplicate metric: %s", err)
+	return fmt.Sprintf("duplicate metric: %s", string(err))
 }
 }
 
 
 // A Registry holds references to a set of metrics by name and can iterate
 // A Registry holds references to a set of metrics by name and can iterate