Fixed an issue where we should have been returning an error.