[Click] nsclick writehandler patch

Bart Braem bart.braem at ua.ac.be
Thu Jan 19 08:29:12 EST 2006


At the bottom of  ns/nsclick.cc writehandlers are called. However, if those 
handlers or those elements do not exist nothing happens. It would be nice to 
generate a warning, similar to the approach of readhandlers:
    if (Element* e = r->find(elementname)) {
	if (const Handler* h = r->handler(e, handlername))
	    if (h->write_visible())
		return h->call_write(writestring, e, ErrorHandler::default_handler());
	click_chatter("writehandler: no such handler '%s'", handlername);
	return -2;
    } else
	click_chatter("writehandler: no such element '%s'",elementname);
	return -1;

Bart
-- 
Bart Braem
PATS research group
Dept. of Mathematics and Computer Sciences
University of Antwerp
G2.36, Building G
Middelheimlaan 1
2020 Antwerpen, Belgium
Phone: +32 (0)3 265.35.19.
Fax: +32 (0)3 265.37.77.
Web: www.pats.ua.ac.be
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 307 bytes
Desc: not available
Url : https://amsterdam.lcs.mit.edu/pipermail/click/attachments/20060119/6def387f/attachment.pgp


More information about the click mailing list