Try to fix <pre> issues on large lastbuilds

This commit is contained in:
Daniel Martí 2014-03-17 14:52:01 +01:00
parent 6cdf509c9e
commit 5d6baedbc9
2 changed files with 3 additions and 5 deletions

View file

@ -774,7 +774,8 @@ class BuildException(Exception):
if self.detail:
ret += "=detail=\n"
ret += "<pre>\n"
ret += str(self.detail)
txt = self.detail[-8192:] if len(self.detail) > 8192 else self.detail
ret += str(txt)
ret += "</pre>\n"
return ret