photoprism/pkg/log/status/error.go
Michael Mayer cd7fa6adca Logs: Add package pkg/log/status to provide generic outcome constants
Signed-off-by: Michael Mayer <michael@photoprism.app>
2025-10-21 14:42:05 +02:00

12 lines
326 B
Go

package status
import (
"github.com/photoprism/photoprism/pkg/clean"
)
// Error returns a sanitized string representation of err for use in audit and
// system logs, for example when an error message should be the final outcome
// token in an `event.Audit*` slice.
func Error(err error) string {
return clean.Error(err)
}