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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=368197

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);