* common.py: Improved no credentials found error message to show which

consumer token is needed.
This commit is contained in:
Jonathan Davies 2009-01-17 10:56:15 +00:00
parent 743154a9c8
commit dce63c4fb7
2 changed files with 5 additions and 2 deletions

View File

@ -290,8 +290,9 @@ def find_credentials(consumer, files, level=None):
continue
if cred.consumer.key == consumer:
return cred
raise IOError("No credentials found, please see the manage-credentials " \
"manpage for help on how to create them.")
raise IOError("No credentials found for '%s', please see the " \
"manage-credentials manpage for help on how to create " \
"one for this consumer." % consumer)
def get_credentials(consumer, cred_file=None, level=None):
files = list()

2
debian/changelog vendored
View File

@ -2,6 +2,8 @@ ubuntu-dev-tools (0.56) UNRELEASED; urgency=low
* manage-credentials: Tighted security by making credentials files and
folder world unreadable.
* common.py: Improved no credentials found error message to show which
consumer token is needed.
-- Jonathan Davies <jpds@ubuntu.com> Thu, 15 Jan 2009 12:35:12 +0000