pages-server/errors/forgejo.go
hazycora e7a14c2100
All checks were successful
Deploy to VPS / build_site (push) Successful in 6s
add error pages
2024-03-29 23:03:26 -05:00

16 lines
316 B
Go

package errors
import "fmt"
type ErrorGetUserByName struct {
Username string
}
func (e ErrorGetUserByName) Error() string {
return fmt.Sprintf("could not get user \"%s\" by name", e.Username)
}
func NewErrorGetUserByName(username string) *ErrorGetUserByName {
return &ErrorGetUserByName{Username: username}
}