Commit cb5667aa authored by maruel@chromium.org's avatar maruel@chromium.org

patch can be None in the exception, causing a secondary exception.

R=csharp@chromium.org
BUG=


Review URL: https://chromiumcodereview.appspot.com/11232069

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@163646 0039d316-1c4b-4281-b951-d872f2087c98
parent bff3fc29
...@@ -76,6 +76,7 @@ class PatchApplicationFailed(Exception): ...@@ -76,6 +76,7 @@ class PatchApplicationFailed(Exception):
out.append('Failed to apply patch for %s:' % self.filename) out.append('Failed to apply patch for %s:' % self.filename)
if self.status: if self.status:
out.append(self.status) out.append(self.status)
if self.patch:
out.append('Patch: %s' % self.patch.dump()) out.append('Patch: %s' % self.patch.dump())
return '\n'.join(out) return '\n'.join(out)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment