Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error message formatting in tags dashboard #1839

Merged
merged 1 commit into from
Dec 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions core/interfaces/tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from functools import partial
import os
import re
from textwrap import indent

import sublime
from sublime_plugin import WindowCommand
Expand Down Expand Up @@ -168,7 +169,7 @@ def do_tags_fetch(remote_name):
except GitSavvyError as e:
new_state = {
"state": "erred",
"message": " {}".format(e.stderr.rstrip())
"message": e.stderr.strip()
}

def sink():
Expand Down Expand Up @@ -311,7 +312,7 @@ def get_remote_tags_list(self, remote_name, remote_info, local_tags, max_items):
msg = NO_REMOTE_TAGS_MESSAGE

elif remote_info["state"] == "erred":
msg = remote_info["message"]
msg = indent(remote_info["message"], " ", lambda line: True)

elif remote_info["state"] == "loading":
msg = LOADING_TAGS_MESSAGE
Expand Down