Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

Commit

Permalink
fix: report more detailed errors in shell.openExternal() on Windows (e…
Browse files Browse the repository at this point in the history
  • Loading branch information
miniak authored and khalwa committed Feb 22, 2023
1 parent 5504be0 commit 23ab65e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion shell/common/platform_util_win.cc
Expand Up @@ -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 "";
}
Expand Down

0 comments on commit 23ab65e

Please sign in to comment.