From aa11e638af9e0a31f1ac3162fdffac3eb62af5fe Mon Sep 17 00:00:00 2001 From: jwortmann Date: Mon, 14 Oct 2024 13:38:35 +0200 Subject: [PATCH] Print URI error to status bar instead of error dialog (#2528) --- plugin/locationpicker.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugin/locationpicker.py b/plugin/locationpicker.py index 80bcf865f..be076c536 100644 --- a/plugin/locationpicker.py +++ b/plugin/locationpicker.py @@ -30,7 +30,10 @@ def open_location_async( def check_success_async(view: sublime.View | None) -> None: if not view: - sublime.error_message("Unable to open URI") + uri = get_uri_and_position_from_location(location)[0] + msg = f"Unable to open URI {uri}" + debug(msg) + session.window.status_message(msg) session.open_location_async(location, flags, group).then(check_success_async)