Jonathan Tan <jonathantanmy@xxxxxxxxxx> writes: > I think the best way for easy authorship and review is to convert each > possibly-dying function into a function that either returns a > possibly-null error string or returns success/failure and writes the > error string into an "out" parameter. Ugly. Rather, if we were to pass an extra parameter through the entire callchain, I'd rather see that parameter to be what to do when we see an error. Depending on that, the callee can die(), return error(), or silently return -1, or do something else. I really do no think it is a good idea to pass text string back to the caller, which invites sentence lego and untranslatable mess.