You can just print the error statement and end the else clause after that. The while loop will start back at the top again (where the list of buildings will be printed and the user will be prompted to make a selection again).