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:
Yeganathan S 2022-03-08 16:29:44 +05:30 committed by GitHub
commit 74e31d5cc1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 6 additions and 6 deletions

View file

@ -44,7 +44,7 @@ func DNSLookup(ctx context.Context, config DNSLookupConfig) (out DNSLookupResult
}
}
}
config.Session.Logger().Infof("%s... %+v", target, err)
config.Session.Logger().Infof("%s... %+v", target, model.ErrorToStringOrOK(err))
out.Failure = result.Failure
out.TestKeys = result
return