Michal Mazurek wrote:
> On 12:12:11,  2.09.16, Ted Unangst wrote:
> > Michal Mazurek wrote:
> > > worms(6) does this more concisely:
> > > 
> > >   errx(1, "length (2-1024) is %s: %s", errstr,
> > 
> > there's multiple schools of thought here, but i've always preferred somewhat
> > shorter error messages. we tell the user it's too small or too large 
> > already.
> > if they need to know the exact bounds, they should consult the manual. maybe
> > learn something else too.
> 
> The reason for this diff was difficulty in determining the max packet
> size, which is 65467 and undocumented. You're saying this should instead
> go into the manual page?

I think that's a much better place to put it. I shouldn't have to run a
command with an absurdly large argument to force it to print the limit.

Reply via email to