Rework error messages
This commit reworks error messages for all commands and makes sure they pass liniting.
This commit is contained in:
parent
d22784e6f5
commit
c31c46ee44
40 changed files with 249 additions and 110 deletions
|
|
@ -66,7 +66,7 @@ func AllPermissions(clauses ...Permission) Permission {
|
|||
}
|
||||
}
|
||||
|
||||
var errPermissionPanic = errors.New("permission: panic()")
|
||||
var errPermissionPanic = errors.New("permission: `panic()'")
|
||||
|
||||
// Permit checks if the given user has this permission.
|
||||
func (perm Permission) Permit(user *AuthUser, r *http.Request) (ok Grant, err error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue