Skip to content
Snippets Groups Projects
Commit 16c5af8e authored by Jano Hendriks's avatar Jano Hendriks
Browse files

Expand custom error with bypassRaygun and bypassSQSError: Fix return types

parent 74dc1e83
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,7 @@ func (err *CustomError) Error() string {
return err.Formatted(FormattingOptions{Causes: false})
}
func (err *CustomError) BypassRaygun() error {
func (err *CustomError) BypassRaygun() *CustomError {
err.bypassRaygun = true
return err
}
......@@ -35,7 +35,7 @@ func (err *CustomError) ShouldBypassRaygun() bool {
return err.bypassRaygun
}
func (err *CustomError) BypassSQSError() error {
func (err *CustomError) BypassSQSError() *CustomError {
err.bypassSQSError = true
return err
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment