[pacman-dev] [PATCH] pactree: Make error message smarter in register_syncs()

Dave Reisner d at falconindy.com
Mon Oct 10 13:14:23 EDT 2011


On Mon, Oct 10, 2011 at 03:22:52PM +0200, Lukas Fleischer wrote:
> Our error message used to be very unclear when the configuration file
> could not be found:
> 
>     $ ./pactree -lsr gtk
>     error: failed to register sync DBs
> 
> Instead, display an accurate message and include the file name:
> 
>     $ ./pactree -lsr gtk
>     error: config file /usr/local/etc/pacman.conf could not be read
> 
> Also, move the error message inside register_syncs() to allow for
> differentiating between different errors that might require a handler in
> the future.
> 
> Signed-off-by: Lukas Fleischer <archlinux at cryptocrack.de>

I'm cool with this. Pushed both your patches to my working branch.

Thanks,
dave


More information about the pacman-dev mailing list