From e1ab7e5ce27d38988c535ccba14ba2eaae52b43c Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sun, 27 Oct 2013 18:21:37 +0100 Subject: CSV import: more explicit message when there is not enough columns --- chimere/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chimere/utils.py b/chimere/utils.py index a30d49a..b7a2da8 100644 --- a/chimere/utils.py +++ b/chimere/utils.py @@ -526,7 +526,8 @@ class CSVManager(ImportManager): try: assert(len(row) >= len(cols)) except AssertionError: - return (0, 0, _(u"Invalid CSV format")) + return (0, 0, _(u"Invalid CSV format - not enough columns " + u"check a reference CSV file")) continue if len(row) < len(cols): continue -- cgit v1.2.3