Documentation
¶
Overview ¶
Copied from pipe-fittings/error_helpers.go. We handle cancellation differently: cancellations are a user choice, so we don't throw an error (normalized to "execution cancelled").
Index ¶
- func FailOnError(err error)
- func FailOnErrorWithMessage(err error, message string)
- func GetWarningOutputStream() io.Writer
- func IsCancelledError(err error) bool
- func PrefixError(err error, prefix string) error
- func ShowError(ctx context.Context, err error)
- func ShowErrorWithMessage(ctx context.Context, err error, message string)
- func ShowWarning(warning string)
- func TransformErrorToTailpipe(err error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FailOnError ¶
func FailOnError(err error)
func FailOnErrorWithMessage ¶
func GetWarningOutputStream ¶
func IsCancelledError ¶
func PrefixError ¶
func ShowErrorWithMessage ¶
ShowErrorWithMessage displays the given error nicely with the given message
func ShowWarning ¶
func ShowWarning(warning string)
func TransformErrorToTailpipe ¶
TransformErrorToTailpipe removes the pq: and rpc error prefixes along with all the unnecessary information that comes from the drivers and libraries
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.