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 { ...@@ -26,7 +26,7 @@ func (err *CustomError) Error() string {
return err.Formatted(FormattingOptions{Causes: false}) return err.Formatted(FormattingOptions{Causes: false})
} }
func (err *CustomError) BypassRaygun() error { func (err *CustomError) BypassRaygun() *CustomError {
err.bypassRaygun = true err.bypassRaygun = true
return err return err
} }
...@@ -35,7 +35,7 @@ func (err *CustomError) ShouldBypassRaygun() bool { ...@@ -35,7 +35,7 @@ func (err *CustomError) ShouldBypassRaygun() bool {
return err.bypassRaygun return err.bypassRaygun
} }
func (err *CustomError) BypassSQSError() error { func (err *CustomError) BypassSQSError() *CustomError {
err.bypassSQSError = true err.bypassSQSError = true
return err return err
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment