Commented out the "one of result or error" exception.
Just returning the error is more useful