mirror of
https://github.com/opnsense/src.git
synced 2026-04-22 06:39:32 -04:00
create command: if an error occurs, print the offending line even if
the -v flag has not been set.
This commit is contained in:
parent
ba90a5c31c
commit
ad4e71c7b7
1 changed files with 2 additions and 0 deletions
|
|
@ -103,6 +103,8 @@ vinum_create(int argc, char *argv[], char *arg0[])
|
|||
printf("%4d: %s", file_line, buffer); /* XXX */
|
||||
ioctl(superdev, VINUM_CREATE, &buffer);
|
||||
if (reply->error != 0) { /* error in config */
|
||||
if (!verbose) /* print this line anyway */
|
||||
printf("%4d: %s", file_line, buffer);
|
||||
fprintf(stdout, "** %d %s: %s\n", file_line, reply->msg, strerror(reply->error));
|
||||
/* XXX at the moment, we reset the config
|
||||
* lock on error, so try to get it again.
|
||||
|
|
|
|||
Loading…
Reference in a new issue