add error to debug