Removed instance of the deprecated .error() method