Bug 1068429 - Trivial fixes for formatting crashes in the tbplformatter.;r=jgraham

This commit is contained in:
Chris Manchester 2014-09-23 20:33:31 -04:00
Родитель e2b843d329
Коммит 4c665047f4
1 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -31,10 +31,11 @@ class TbplFormatter(BaseFormatter):
return "PROCESS | %(process)s | %(data)s\n" % data
def crash(self, data):
id = self.id_str(data["test"]) if "test" in data else "pid: " % data["process"]
id = self.id_str(data["test"]) if "test" in data else "pid: %s" % data["process"]
signature = data["signature"] if data["signature"] else "unknown top frame"
rv = ["PROCESS-CRASH | %s | application crashed [%s]" % (id, signature)]
rv = ["PROCESS-CRASH | %s | application crashed [%s]" % (id,
data["signature"])]
if data.get("minidump_path"):
rv.append("Crash dump filename: %s" % data["minidump_path"])