Fixing error return to be consistent with tuple return at the end of the method.