Print at least something when failing.

This commit is contained in:
Gleb Smirnoff 2020-11-30 21:05:31 +00:00
parent ac042c65ae
commit 4c91d6bc44

View File

@ -584,8 +584,11 @@ main(int argc, char *argv[])
return (usage(false));
}
if ((be = libbe_init(root)) == NULL)
if ((be = libbe_init(root)) == NULL) {
fprintf(stderr, "libbe_init(\"%s\") failed.\n",
root != NULL ? root : "");
return (-1);
}
libbe_print_on_error(be, !cmd->silent);