Skip to content

Commit

Permalink
Print URI error to status bar instead of error dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
jwortmann committed Oct 11, 2024
1 parent d71e11a commit 4b15cd5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugin/locationpicker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 4b15cd5

Please sign in to comment.