Quote the commit message when referring to it

This commit is contained in:
Alexander van Gessel 2013-08-03 00:50:44 +02:00
parent 0cae8c8a35
commit f3a8d04db2

View file

@ -196,11 +196,11 @@ class Addon(object):
pass
elif status == "=":
# Up to date?
logging.warn("Commit to add-on {0} with message {1} has not made any changes".format(self.name, message))
logging.warn("Commit to add-on {0} with message '{1}' has not made any changes".format(self.name, message))
elif status == "!":
raise AddonError(self.name, "Commit with message {0} failed for reason {1}".format(message, summary))
raise AddonError(self.name, "Commit with message '{0}' failed for reason {1}".format(message, summary))
else:
raise AddonError(self.name, "Commit with message {0} has done something unexpected: {1}".format(message, statusline[0]))
raise AddonError(self.name, "Commit with message '{0}' has done something unexpected: {1}".format(message, statusline[0]))
def get_dir(self):
"""Return the directory this add-on's checkout is in.