Change erorr type