changeset 105 | aa895dfae3f6 |
parent 102 | 872e936f9f3f |
child 107 | 3a01bd8e3f8c |
104:99e03b33b20d | 105:aa895dfae3f6 |
---|---|
272 } |
272 } |
273 |
273 |
274 func (er *Error) Error() string { |
274 func (er *Error) Error() string { |
275 buf, err := xml.Marshal(er) |
275 buf, err := xml.Marshal(er) |
276 if err != nil { |
276 if err != nil { |
277 Warn.Logf("double bad error: couldn't marshal error") |
277 Warn.Log("double bad error: couldn't marshal error") |
278 return "unreadable error" |
278 return "unreadable error" |
279 } |
279 } |
280 return string(buf) |
280 return string(buf) |
281 } |
281 } |
282 |
282 |