Prettier output on error.
authorDaniel Hokka Zakrisson <daniel@hozac.com>
Sun, 29 Jul 2007 16:32:32 +0000 (16:32 +0000)
committerDaniel Hokka Zakrisson <daniel@hozac.com>
Sun, 29 Jul 2007 16:32:32 +0000 (16:32 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2570 94cd875c-1c1d-0410-91d2-eb244daf1a30

src/naddress.c

index 2f7e8f6..035bc9f 100644 (file)
@@ -339,6 +339,8 @@ doit(struct Arguments *args)
     for (ips = &args->head; ips->next; ips = ips->next) {
       tellAddress(&ips->a, args->is_silent);
       if (vc_net_add(args->nid, &ips->a) != (int)ips->a.count) {
+       if (!args->is_silent)
+         WRITE_MSG(1, "\n");
        perror(ENSC_WRAPPERS_PREFIX "vc_net_add()");
        exit(wrapper_exit_code);
       }