Moved the error check to when we inspect the modified code info.