Add a few \n in the e2e error messages

This commit is contained in:
louiz’
2018-03-12 01:34:24 +01:00
parent 06438fe8ec
commit 9b17a96187
+1 -1
View File
@@ -152,7 +152,7 @@ def check_xpath(xpaths, xmpp, after, stanza):
xpath = xpath[1:] xpath = xpath[1:]
matched = match(stanza, xpath) matched = match(stanza, xpath)
if (expected and not matched) or (not expected and matched): if (expected and not matched) or (not expected and matched):
raise StanzaError("Received stanza “%s” did not match expected xpath “%s”" % (stanza, real_xpath)) raise StanzaError("Received stanza\n%s\ndid not match expected xpath\n%s" % (stanza, real_xpath))
if after: if after:
if isinstance(after, collections.Iterable): if isinstance(after, collections.Iterable):
for af in after: for af in after: