Skip to content

Commit

Permalink
Merge pull request #1839 from timbrel/fix-error-message-format
Browse files Browse the repository at this point in the history
  • Loading branch information
kaste authored Dec 13, 2023
2 parents c91d198 + ce38063 commit 23dc79d
Showing 1 changed file with 3 additions and 2 deletions.
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

0 comments on commit 23dc79d

Please sign in to comment.