| 67 | } |
| 68 | |
| 69 | Status WindowsError(const std::string& context, DWORD error_code) { |
| 70 | if (error_code == ERROR_FILE_NOT_FOUND || error_code == ERROR_PATH_NOT_FOUND) |
| 71 | return Status::NotFound(context, GetWindowsErrorMessage(error_code)); |
| 72 | return Status::IOError(context, GetWindowsErrorMessage(error_code)); |
| 73 | } |
| 74 | |
| 75 | class ScopedHandle { |
| 76 | public: |
no test coverage detected