From f6e3a513935b262febc3844c8d2ec0011222f53a Mon Sep 17 00:00:00 2001 From: Chenxiong Qi Date: Jun 28 2018 07:24:46 +0000 Subject: Give more information when sources has invalid content Fixes #227 Signed-off-by: Chenxiong Qi --- diff --git a/pyrpkg/sources.py b/pyrpkg/sources.py index a443f38..965b7b2 100644 --- a/pyrpkg/sources.py +++ b/pyrpkg/sources.py @@ -66,7 +66,10 @@ class SourcesFile(object): hash, file = stripped.split(' ', 1) except ValueError: - raise MalformedLineError(line) + raise MalformedLineError( + 'sources has invalid content: {0}\n' + 'Please note that sources file must not be modified manually.' + .format(stripped)) return self.entry_type('md5', file, hash)