Allows custom errors #761