Added an error message in case of the selected branch is incorrect