Better error handling with misalinged text