Add throwing error to generate a error message