Improving message error for integers