printing error when failed to read mail