blob: f2c58477105c6eb4f47bd23ab66aff22eefba0b7 [file] [log] [blame]
package cdp
import (
"github.com/mafredri/cdp/internal/errors"
)
// ErrorCause returns the underlying cause for this error, if possible.
// If err does not implement causer.Cause(), then err is returned.
//
// Deprecated: Use errors.Unwrap, errors.Is or errors.As instead.
func ErrorCause(err error) error { return errors.Cause(err) }