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
|
|
@ -128,12 +128,7 @@ var loginTemplate = templating.ParseForm(
|
|||
templating.Assets(assets.AssetsUser),
|
||||
)
|
||||
|
||||
var loginResponse = httpx.Response{
|
||||
ContentType: "text/plain",
|
||||
Body: []byte("user is signed in"),
|
||||
}
|
||||
|
||||
var errLoginFailed = errors.New("Login failed")
|
||||
var errLoginFailed = errors.New("login failed")
|
||||
|
||||
// authLogin implements a view to login a user
|
||||
func (auth *Auth) authLogin(ctx context.Context) http.Handler {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue