953ca55483
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
18 lines
358 B
Go
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())
|
|
}
|
|
}
|