Files
mediamtx/internal/auth/error.go
T
Alessandro RosandGitHub e14ada6f4b normalize authentication error messages (#5421) (#5959)
Log authentication errors as soon as possible, use the "warn" level,
use the same message whatever the author or protocol.
2026-07-19 10:04:17 +02:00

13 lines
248 B
Go

package auth
// Error is an authentication error.
type Error struct {
Wrapped error
AskCredentials bool
}
// Error implements the error interface.
func (e *Error) Error() string {
return "failed to authenticate: " + e.Wrapped.Error()
}