checking raise error works for upgrade error