photoprism/internal/config/errors.go
Michael Mayer 953ca55483 Backend: Refactor config tests
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-04-30 16:09:05 +02:00

18 lines
358 B
Go

package config
import (
"errors"
)
// Define photoprism specific errors
var (
ErrReadOnly = errors.New("not available in read-only mode")
ErrUnauthorized = errors.New("please log in and try again")
ErrUploadNSFW = errors.New("upload might be offensive")
)
func LogError(err error) {
if err != nil {
log.Errorf("config: %s", err.Error())
}
}