Browse Source

more useful output

Dieter Plaetinck 11 năm trước cách đây
mục cha
commit
3a7d7c52a4
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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))
 		}
 	})
 }