From 6d04ef7abd542c7da0206ea2223e86b0d7290ae8 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Wed, 20 Feb 2013 20:51:15 +0100 Subject: [PATCH] Improve error message. --- dosage | 2 +- tests/test_comics.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dosage b/dosage index e9c6a7763..f5ad6d437 100755 --- a/dosage +++ b/dosage @@ -70,7 +70,7 @@ def saveComicStrip(strip, basepath): if saved: allskipped = False except IOError as msg: - out.error('Could not save %s: %s' % (image.filename, msg)) + out.error('Could not save image at %s to %s: %s' % (image.referrer, image.filename, msg)) errors += 1 return errors, allskipped diff --git a/tests/test_comics.py b/tests/test_comics.py index 56d8c8d53..3a3cd62c9 100644 --- a/tests/test_comics.py +++ b/tests/test_comics.py @@ -77,7 +77,7 @@ class _ComicTester(TestCase): try: image.save(self.tmpdir) except Exception as msg: - self.check(False, 'could not save %s to %s: %s' % (image.url, self.tmpdir, msg)) + self.check(False, 'could not save %s at %s to %s: %s' % (image.url, image.referrer, self.tmpdir, msg)) def check(self, condition, msg): self.assertTrue(condition, "%s %s %s" % (self.name, self.url, msg))