Skip to content
Snippets Groups Projects
Commit d6e1b740 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

win32: DeviceLister: Improve error messages formating

parent 92316f44
No related branches found
No related tags found
No related merge requests found
......@@ -90,7 +90,7 @@ std::vector<CommonDeviceLister::Device> DeviceLister::localDevices() const
if ( handle == INVALID_HANDLE_VALUE )
{
std::stringstream ss;
ss << "error code" << GetLastError();
ss << "FindFirstVolume error: #" << GetLastError();
throw fs::errors::DeviceListing{ ss.str() };
}
std::unique_ptr<typename std::remove_pointer<HANDLE>::type, decltype(&FindVolumeClose)>
......@@ -104,7 +104,7 @@ std::vector<CommonDeviceLister::Device> DeviceLister::localDevices() const
if ( err == ERROR_NO_MORE_FILES )
break;
std::stringstream ss;
ss << "error code" << err;
ss << "FindNextVolume error: #" << err;
throw fs::errors::DeviceListing{ ss.str() };
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment