summaryrefslogtreecommitdiffstats
path: root/src/vppinfra/error.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vppinfra/error.c')
-rw-r--r--src/vppinfra/error.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vppinfra/error.c b/src/vppinfra/error.c
index a00e8dbd21a..b2b1a83e552 100644
--- a/src/vppinfra/error.c
+++ b/src/vppinfra/error.c
@@ -210,7 +210,9 @@ format_clib_error (u8 * s, va_list * va)
vec_free (where);
}
- s = format (s, "%v\n", e->what);
+ s = format (s, "%v", e->what);
+ if ((vec_end (errors) - 1) != e)
+ s = format (s, "\n");
}
return s;