mirror of
https://github.com/photoprism/photoprism.git
synced 2025-09-26 21:01:58 +08:00
15 lines
266 B
Go
15 lines
266 B
Go
package server
|
|
|
|
import (
|
|
"github.com/photoprism/photoprism/internal/server/process"
|
|
)
|
|
|
|
// Fail logs an error and then initiates a server shutdown.
|
|
func Fail(err string, params ...interface{}) {
|
|
if err != "" {
|
|
log.Errorf(err, params...)
|
|
}
|
|
|
|
process.Shutdown()
|
|
}
|