From: Johan Herland Date: Sun, 14 Nov 2010 23:50:26 GMT Subject: Re: [PATCHv6 06/23] notes.h/c: Propagate combine_notes_fn return value to add_note() and beyond Message-ID: <201011150050.27131.johan@herland.net> In-Reply-To: <20101114212243.GC10150@burratino> On Sunday 14 November 2010, Jonathan Nieder wrote: > Thiago Farina wrote: > > On Tue, Nov 9, 2010 at 7:49 PM, Johan Herland wrote: > >> die("confused: combine_notes_overwrite failed"); > > > > This message looks like more a debug information. Could it be > > rewritten to be more user friendly / more informative? > > Sverre mentioned the same thing. The intent is the same as the existing > > die("should not happen, someone must be hit on the forehead"); > > --- i.e., to provoke bug reports if it happens, without the appearance > of begging. :) > > So how about: > > die("BUG: combine_notes_overwrite failed"); > > Something involving assert() could also work, but that tends to be > a bit ugly. Agreed. I've rewritten the die() messages in the following v6.1 patches. ...Johan -- Johan Herland, www.herland.net