Make Result.Error a string

This commit is contained in:
Tomás Senart
2013-09-10 21:46:28 +01:00
parent 972fe6925d
commit 6348a1b7df
5 changed files with 13 additions and 14 deletions

View File

@@ -37,8 +37,8 @@ func NewMetrics(results []Result) *Metrics {
if result.Code >= 200 && result.Code < 300 {
m.TotalSuccess++
}
if result.Error != nil {
errorSet[result.Error.Error()] = struct{}{}
if result.Error != "" {
errorSet[result.Error] = struct{}{}
}
}