From fa051555c3660a01d705c1667c8e958b480a7711 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 23 Jan 2020 20:16:23 +0530 Subject: [PATCH] Better parse failure error message --- src/calibre/ebooks/oeb/polish/check/css.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/ebooks/oeb/polish/check/css.py b/src/calibre/ebooks/oeb/polish/check/css.py index f66a55700c..2499392a56 100644 --- a/src/calibre/ebooks/oeb/polish/check/css.py +++ b/src/calibre/ebooks/oeb/polish/check/css.py @@ -250,10 +250,10 @@ def check_css(jobs): if err is not None: errors.append(err) elif isinstance(result, list) and result: - errors.append(CSSParseError(_('Failed to process {name} with errors: {errors}').format( + errors.append(CSSParseError(_('Failed to process CSS in {name} with errors: {errors}').format( name=job.name, errors='\n'.join(result)), job.name)) else: - errors.append(CSSParseError(_('Failed to process {name}').format(name=job.name), job.name)) + errors.append(CSSParseError(_('Failed to process CSS in {name}').format(name=job.name), job.name)) return errors