Enhance error printing