Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
medialibrary
Commits
e8f08241
Commit
e8f08241
authored
May 25, 2022
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/filesystem/win32/DeviceLister.cpp
View file @
e8f08241
...
...
@@ -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
()
};
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment