Remove the .Error() method from probs.ProblemDetails, so that it can no longer be returned from functions which return an error. Update various call sites to use the .String() method to get a textual representation of the problem instead. Simplify ProblemDetailsForError to not special-case and pass-through ProblemDetails, since they are no longer a valid input to that function. This reduces instances of "boxed nil" bugs, and paves the way for all of the WFE methods to be refactored to simply return errors instead of writing them directly into the response object. Part of https://github.com/letsencrypt/boulder/issues/4980 |
||
---|---|---|
.. | ||
errors.go | ||
errors_test.go |