structs.go
changeset 100 24231ff0016c
parent 98 c9cc4eda6dce
child 102 872e936f9f3f
equal deleted inserted replaced
98:c9cc4eda6dce 100:24231ff0016c
   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 		if Log != nil {
   277 		Warnf("double bad error: couldn't marshal error")
   278 			Log.Err("double bad error couldn't marshal error")
       
   279 		}
       
   280 		return "unreadable error"
   278 		return "unreadable error"
   281 	}
   279 	}
   282 	return string(buf)
   280 	return string(buf)
   283 }
   281 }
   284 
   282