convert errors to warnings