Alvaro Lopez Ortega wrote:
Eric S. Johansson wrote:

 > [EMAIL PROTECTED]:/etc/cherokee/sites-enabled# cherokee
 > Error parsing file :649 'syntax error', symbol '}'
 > Couldn't read the config file
 >
 > could use a bit more detail like file name and line number within
 > file.

  Actually, it isn't something easy to fix.  At this moment, Cherokee
  reads all the configuration files in memory, then it mixes all of
  them in a single buffer, and finally it begins to parse the content,
  so at that point is unclear which was the source file that included
  the wrong configuration entry..

I was afraid it was something like that. maybe one way to solve the problem is as you read in each line, put a comment on the end of the line indicating file/line number association. It would look something like this:

Directory /mailman/images {     # sites-enabled/default : 215

what should work for conveying information unless of course you have stripped out the comments at this point.

another option would be to do the same type of thing except with an external configuration validator.

another short-term solution would be something which aggregates the files in the same way with the same line number sequences as Cherokee and then we can count on our fingers until we get till the right line number.


  Lets log the bug and I will try to take care of it after the 0.5.0
  release.  It isn't something really important but I guess it worth
  to spend sometime to improve it.

sounds reasonable. It's mostly a royal pain in the WTF when you are making configuration changes. I can usually guess at a solution but I have spent some time in the wrong configuration file on occasion.

---eric
_______________________________________________
Cherokee mailing list
[email protected]
http://www.alobbs.com/cgi-bin/mailman/listinfo/cherokee

Reply via email to