update error message thrown