Source

CherryPy / cherrypy / _cpconfig.py

Diff from to

cherrypy/_cpconfig.py

                 try:
                     value = unrepr(value)
                 except Exception, x:
-                    msg = ("Config error in section: %s, option: %s, value: %s" %
-                           (repr(section), repr(option), repr(value)))
+                    msg = ("Config error in section: %r, option: %r, "
+                           "value: %r. Config values must be valid Python." %
+                           (section, option, value))
                     raise ValueError(msg, x.__class__.__name__, x.args)
                 result[section][option] = value
         return result