> I'd rather know _why_ something failed rather than having to dig through the
> code to figure out which layer and why.  Not every user is a UNIX programmer
> with intimate knowledge of the targets, interfaces, and general protocols.

That's what the LOG_ERROR()'s are for. They tell you where and why.

retval's are not propagated consistently or relyably in OpenOCD (or
any other C program I've seen really). We could switch to a language
with exceptions(C++), but we've had that discussion and there isn't
a strong incentive to do so with OpenOCD now that we've got exceptions
and resource tracking for menial stuff in Tcl.


-- 
Øyvind Harboe
PayBack incident management system
Reduce costs and increase quality, free Starter Edition
http://www.payback.no/index_en.html
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to