فهرست منبع

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))
 		}
 	})
 }