(source_path: str, error: OSError)
| 160 | |
| 161 | |
| 162 | def _get_read_error_message(source_path: str, error: OSError) -> str: |
| 163 | if error.errno == errno.EIO: |
| 164 | return f"Cannot read device {source_path} (I/O error)." |
| 165 | return f"Cannot read from {source_path}." |