cleanup: use ErrorToStringOrOK func in other tests that returns nil (#701)
Reference issue: https://github.com/ooni/probe/issues/2040
This commit is contained in:
@@ -131,7 +131,7 @@ func (m Measurer) Run(
|
||||
tk.Tampering = (tk.Tampering || result.Tampering)
|
||||
completed++
|
||||
percentage := (float64(completed)/float64(len(m.Methods)))*0.5 + 0.5
|
||||
callbacks.OnProgress(percentage, fmt.Sprintf("%s... %+v", result.Name, result.Err))
|
||||
callbacks.OnProgress(percentage, fmt.Sprintf("%s... %+v", result.Name, model.ErrorToStringOrOK(result.Err)))
|
||||
if completed >= len(m.Methods) {
|
||||
break
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user