errors: return error type from NewWrappedJobAbortError
The wrappedJobAbortError type isn't exported, so returning an error type
makes it easier to handle in other packages.
@@ -9,7 +9,7 @@ type wrappedJobAbortError struct {
message string
}
-func NewWrappedJobAbortError(err error) *wrappedJobAbortError {
+func NewWrappedJobAbortError(err error) error {
return &wrappedJobAbortError{
err: err,
}
