From e4cb7995ab7ffb0326e35ef15e6314abeabecd16 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Fri, 15 Nov 2019 14:33:08 -0800 Subject: rototiller: print setup error cause This area needs more work, but this helps a little. --- src/rototiller.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/rototiller.c b/src/rototiller.c index 46882f9..7ad1624 100644 --- a/src/rototiller.c +++ b/src/rototiller.c @@ -399,7 +399,7 @@ int main(int argc, const char *argv[]) return print_help() < 0 ? EXIT_FAILURE : EXIT_SUCCESS; exit_if((r = setup_from_args(&args, &setup)) < 0, - "unable to setup"); + "unable to setup: %s", strerror(-r)); exit_if(r && print_setup_as_args(&setup) < 0, "unable to print setup"); -- cgit v1.2.3