From 93cd8acc739314d37075082c1272f88bbdebe81b Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 2 Oct 2020 20:55:04 +0200 Subject: lib: tweak error context formatting Do not emit additional newline when formatting error context and print it instead when outputting the exception. Signed-off-by: Jo-Philipp Wich --- lib.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'lib.c') diff --git a/lib.c b/lib.c index 1c06da0..9df8a62 100644 --- a/lib.c +++ b/lib.c @@ -125,8 +125,6 @@ format_error_context(char **msg, size_t *msglen, const char *path, const char *e sprintf_append(msg, msglen, "^\n"); } - - sprintf_append(msg, msglen, "\n"); } char * -- cgit v1.2.3