From 4b15cd56cdd11715f942cc0442d8c9fd342a4e13 Mon Sep 17 00:00:00 2001 From: Janos Wortmann Date: Fri, 11 Oct 2024 16:28:30 +0200 Subject: [PATCH] Print URI error to status bar instead of error dialog --- 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)