server/sources/pyrorql.py
branchstable
changeset 7879 9aae456abab5
parent 7815 2a164a9cf81c
child 7884 35d2e2f4e10a
--- a/server/sources/pyrorql.py	Tue Sep 27 16:04:30 2011 +0200
+++ b/server/sources/pyrorql.py	Wed Sep 28 09:27:42 2011 +0200
@@ -191,7 +191,7 @@
                 self.support_entities[ertype] = 'write' in options
         else: # CWRType
             if ertype in ('is', 'is_instance_of', 'cw_source') or ertype in VIRTUAL_RTYPES:
-                msg = schemacfg._cw._('%s relation should not be in mapped') % rtype
+                msg = schemacfg._cw._('%s relation should not be in mapped') % ertype
                 raise ValidationError(schemacfg.eid, {role_name('cw_for_schema', 'subject'): msg})
             options = self._check_options(schemacfg, self.rtype_options)
             if 'dontcross' in options: