Explorar el Código

more useful output

Dieter Plaetinck hace 11 años
padre
commit
3a7d7c52a4
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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))
 		}
 	})
 }