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
  • Loading branch information
miniak committed Apr 5, 2022
1 parent fcbdaab commit 1cbbb6c
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: " +
base::SystemErrorCodeToString(base::GetLastSystemErrorCode());
}
return "";
}
Expand Down

0 comments on commit 1cbbb6c

Please sign in to comment.