Skip to content

Commit

Permalink
fix: report more detailed errors in shell.openExternal() on Windows (#…
Browse files Browse the repository at this point in the history
…33658)

Co-authored-by: Milan Burda <milan.burda@gmail.com>
  • Loading branch information
trop[bot] and miniak committed Apr 11, 2022
1 parent 3c6be55 commit ee52147
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 ee52147

Please sign in to comment.