Skip to content

Commit 73e216f

Browse files
trop[bot]miniak
andauthored
fix: report more detailed errors in shell.openExternal() on Windows (#33659)
Co-authored-by: Milan Burda <milan.burda@gmail.com>
1 parent 0a80eb4 commit 73e216f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

shell/common/platform_util_win.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,8 @@ std::string OpenExternalOnWorkerThread(
251251
ShellExecuteW(nullptr, L"open", escaped_url.c_str(), nullptr,
252252
working_dir.empty() ? nullptr : working_dir.c_str(),
253253
SW_SHOWNORMAL)) <= 32) {
254-
return "Failed to open";
254+
return "Failed to open: " +
255+
logging::SystemErrorCodeToString(logging::GetLastSystemErrorCode());
255256
}
256257
return "";
257258
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy