[dataimport] Slight message modification in exception handling code.
authorVladimir Popescu <vladimir.popescu@logilab.fr>
Tue, 02 Apr 2013 12:05:51 +0200
changeset 8835 3612b760488b
parent 8834 6947201033be
child 8836 8a57802d40d3
[dataimport] Slight message modification in exception handling code.
dataimport.py
--- a/dataimport.py	Tue Apr 02 12:04:22 2013 +0200
+++ b/dataimport.py	Tue Apr 02 12:05:51 2013 +0200
@@ -1052,7 +1052,9 @@
                 else:
                     raise ValueError('You should give the subject etype for '
                                      'inlined relation %s'
-                                     ', as it cannot be inferred' % rtype)
+                                     ', as it cannot be inferred: '
+                                     'this type is given as keyword argument '
+                                     '``subjtype``'% rtype)
             statement = self.sqlgen.update(SQL_PREFIX + subjtype,
                                            data, ['cw_eid'])
         else: