Fix r368197: suppress error printing for the "check" command.

Reviewed by:	kevans
This commit is contained in:
Gleb Smirnoff 2020-12-02 21:53:28 +00:00
parent 1c5d066a72
commit 3921dc1304
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=368287

View File

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