Replace DAVError with HTTPError + Error

That way we can avoid having different ways of representing the
same error value.
This commit is contained in:
Simon Ser
2022-05-02 11:37:45 +02:00
parent 8738a105fc
commit 4e8c5effe3
4 changed files with 19 additions and 34 deletions

View File

@@ -103,14 +103,3 @@ func (err *HTTPError) Error() string {
func (err *HTTPError) Unwrap() error {
return err.Err
}
// DAVError is a XML error with HTTP status and a human readable message
type DAVError struct {
Code int
Msg string
Err Error
}
func (err *DAVError) Error() string {
return err.Msg
}