pcmt/modules/user/error.go
leo ae5c4f1dd4
All checks were successful
continuous-integration/drone/push Build is passing
go,tmpl: add usr details listing
* add tmpl
* add handler for route /manage/user/:id
* add convenience helper func
* handle not found/invalid uuid errors
2023-05-29 22:42:18 +02:00

14 lines
402 B
Go

// Copyright 2023 wanderer <a_mirre at utb dot cz>
// SPDX-License-Identifier: AGPL-3.0-only
package user
import "errors"
var (
ErrUsersAlreadyPresent = errors.New("don't call CreateFirst when there already are another users")
ErrUserNotFound = errors.New("user not found")
ErrFailedToQueryUser = errors.New("failed to query user")
ErrBadUUID = errors.New("invalid uuid")
)