瀏覽代碼

more useful output

Dieter Plaetinck 11 年之前
父節點
當前提交
3a7d7c52a4
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      exp/exp.go

+ 1 - 1
exp/exp.go

@@ -142,7 +142,7 @@ func (exp *exp) syncToExpvar() {
 		case metrics.Timer:
 			exp.publishTimer(name, i.(metrics.Timer))
 		default:
-			panic("unsupported type for " + name)
+			panic(fmt.Sprintf("unsupported type for '%s': %T", name, i))
 		}
 	})
 }