소스 검색

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