Commit e8f08241 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

win32: DeviceLister: Improve error messages formating

parent 867ffc24
Pipeline #224500 passed with stages
in 7 minutes and 44 seconds
......@@ -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() };
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment