fix non-production errors showing up in output