DetailErr calls `Detail(err.Error())`.
(err error)
| 172 | |
| 173 | // DetailErr calls `Detail(err.Error())`. |
| 174 | func (p Problem) DetailErr(err error) Problem { |
| 175 | if err == nil { |
| 176 | return p |
| 177 | } |
| 178 | |
| 179 | return p.Key("detail", err.Error()) |
| 180 | } |
| 181 | |
| 182 | // Instance sets the problem's instance field. |
| 183 | // A URI reference that identifies the specific |