account page: can now reorder entries under shops sections by drag and drop
This commit is contained in:
@@ -150,7 +150,13 @@ func (e ErrorResponse) GetHTML() ([]byte, bool) {
|
||||
}
|
||||
|
||||
func GetError(err error) (e ErrorResponse, ok bool) {
|
||||
ok = errors.As(err, &e)
|
||||
if ok = errors.As(err, &e); ok {
|
||||
return e, true
|
||||
}
|
||||
var ptr *ErrorResponse
|
||||
if ok = errors.As(err, &ptr); ok {
|
||||
return *ptr, true
|
||||
}
|
||||
return e, ok
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user