Kaydet (Commit) 9a471d33 authored tarafından Enrico Tröger's avatar Enrico Tröger Kaydeden (comit) GitHub

Merge pull request #1079 from eht16/win32_open_uri_error_handling2

Win32: Add UI error message if an URL could not be opened
......@@ -799,7 +799,7 @@ void win32_open_browser(const gchar *uri)
if (ret <= 32)
{
gchar *err = g_win32_error_message(GetLastError());
/* TODO add a GUI warning that opening an URI failed */
ui_set_statusbar(TRUE, _("Failed to open URI \"%s\": %s"), uri, err);
g_warning("ShellExecute failed opening \"%s\" (code %d): %s", uri, ret, err);
g_free(err);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment