internal: parse WebDAV toplevel <error> elements

This commit is contained in:
Simon Ser
2020-05-13 15:02:52 +02:00
parent f4e3fe8c0a
commit 4c0dc5d900
2 changed files with 22 additions and 1 deletions

View File

@@ -360,6 +360,11 @@ type Error struct {
Raw []RawXMLValue `xml:",any"`
}
func (err *Error) Error() string {
b, _ := xml.Marshal(err)
return string(b)
}
// https://tools.ietf.org/html/rfc4918#section-15.2
type DisplayName struct {
XMLName xml.Name `xml:"DAV: displayname"`