[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Editfiles error messages

From: Chip Seraphine
Subject: Editfiles error messages
Date: Tue, 19 Oct 2004 11:00:22 -0500
User-agent: Mozilla Thunderbird 0.8 (X11/20040916)

When I screw up in editfiles, I get messages like this:

cuffs: File formats did not completely match in ReplaceLinesMatchingField
cuffs: while editing /var/cfengine/proxy/crontab.cfadmin

If I've made a modest amount of edits recently, this is easy to track down. Unfortunately, after a wholesale rewrite of a file this can be a real bear. Can we get these messages to include some handy stuff like what config file and line number is throwing the error? Rerunning cfagent in heightened verbosity isn't always a good option (I can't run cfagent on certain production machines at certain times of the day), so it would be useful to get more info from the initial error message. I could just come in in the morning, read the errors, and fix 'em up....

Looking in item-ext.c (where this error is from), I don't really see how this could be easily done without adding a bunch of globals and other such badness. Any C wizards out there with a good idea on how to improve these messages?


Chip Seraphine
Unix Administrator
TradeLink, LLC

reply via email to

[Prev in Thread] Current Thread [Next in Thread]