Adds ErrorWithDetail interface to allow for response of detail. This is similar to the older with Info. The motivation for this is the fact that we use the detail option in the slog.Error in the default error handler as well as in the HTTPError.Error() func. Maybe we should default into something as well in the case where the user doesn't supply it.
If this is acceptable I will update the docs now as well.
Closes #225
Adds
ErrorWithDetail
interface to allow for response of detail. This is similar to the older with Info. The motivation for this is the fact that we use the detail option in theslog.Error
in the default error handler as well as in theHTTPError.Error()
func. Maybe we should default into something as well in the case where the user doesn't supply it.If this is acceptable I will update the docs now as well.