fix: report more detailed errors in shell.openExternal() on Windows (#33620)
This commit is contained in:
parent
7fb1c8faad
commit
4d4682c0e3
1 changed files with 2 additions and 1 deletions
|
@ -251,7 +251,8 @@ std::string OpenExternalOnWorkerThread(
|
|||
ShellExecuteW(nullptr, L"open", escaped_url.c_str(), nullptr,
|
||||
working_dir.empty() ? nullptr : working_dir.c_str(),
|
||||
SW_SHOWNORMAL)) <= 32) {
|
||||
return "Failed to open";
|
||||
return "Failed to open: " +
|
||||
logging::SystemErrorCodeToString(logging::GetLastSystemErrorCode());
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue