Spaghetti code: incorrect error message.