Allows errors to be passed to the next function