Skip to content

Commit

Permalink
Component: Provide better error message for authentication error
Browse files Browse the repository at this point in the history
Issue #3533
  • Loading branch information
nijel committed Mar 18, 2020
1 parent 86e1e8c commit b31c3ef
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions weblate/trans/models/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -782,6 +782,15 @@ def handle_update_error(self, error_text, retry):
)
}
)
if "terminal prompts disabled" in error_text:
raise ValidationError(
{
"repo": _(
"The repository requires authentication, please specify "
"credentials in the URL or use SSH access instead."
)
}
)
raise ValidationError(
{"repo": _("Could not fetch the repository: %s") % error_text}
)
Expand Down

0 comments on commit b31c3ef

Please sign in to comment.