mediamtx/internal/auth/error.go

12 lines
246 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 "authentication failed: " + e.Wrapped.Error()
}