pub fn io_error<T>(result: Result<T, Error>, context: &str) -> Result<T, String>
Convenience function for consistent I/O errors