#863: Cryptic error message for configuration syntax error
------------------------+---------------------------------------------------
Reporter: max | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 1.0b1
Component: TurboGears | Version: 0.9a5
Severity: normal | Keywords:
------------------------+---------------------------------------------------
Adding line like "kid.encoding = latin1" (note missing quotes over latin1)
yields the following cryptic traceback:
{{{
Traceback (most recent call last):
File "D:\Projects\z01\start-z01.py", line 21, in ?
modulename="z01.config")
File "d:\projects\3rd-party\turbogears-1.0\turbogears\config.py", line
183, in update_config
configdata2 = ConfigObj(configfile, unrepr=True)
File "C:\Python24\lib\site-
packages\configobj-4.3.0-py2.4.egg\configobj.py", line 1055, in __init__
File "C:\Python24\lib\site-
packages\configobj-4.3.0-py2.4.egg\configobj.py", line 1323, in _parse
File "C:\Python24\lib\site-
packages\configobj-4.3.0-py2.4.egg\configobj.py", line 1491, in
_handle_value
File "C:\Python24\lib\site-
packages\configobj-4.3.0-py2.4.egg\configobj.py", line 203, in unrepr
File "C:\Python24\lib\site-
packages\configobj-4.3.0-py2.4.egg\configobj.py", line 157, in build
File "C:\Python24\lib\site-
packages\configobj-4.3.0-py2.4.egg\configobj.py", line 184, in build_Name
configobj.UnknownType: Undefined Name
}}}
TurboGears should be more user-friendly here, at least explaining there
was a syntax error and at best giving exact error location.
--
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/863>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Tickets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets
-~----------~----~----~----~------~----~------~--~---