MCPcopy Create free account
hub / github.com/PabloLec/RecoverPy / _get_read_error_message

Function _get_read_error_message

recoverpy/lib/storage/byte_range_reader.py:162–165  ·  view source on GitHub ↗
(source_path: str, error: OSError)

Source from the content-addressed store, hash-verified

160
161
162def _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}."

Callers 1

_safe_preadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected