mirror of
https://github.com/photoprism/photoprism.git
synced 2026-01-23 02:24:24 +00:00
17 lines
323 B
Go
17 lines
323 B
Go
package config
|
|
|
|
import (
|
|
"errors"
|
|
)
|
|
|
|
var (
|
|
// ErrReadOnly indicates an action is not permitted in read-only mode.
|
|
ErrReadOnly = errors.New("not available in read-only mode")
|
|
)
|
|
|
|
// LogErr logs a config-related error if it is non-nil.
|
|
func LogErr(err error) {
|
|
if err != nil {
|
|
log.Errorf("config: %s", err.Error())
|
|
}
|
|
}
|