summaryrefslogtreecommitdiffhomepage
path: root/lib.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-10-02 20:55:04 +0200
committerJo-Philipp Wich <jo@mein.io>2020-10-02 20:55:04 +0200
commit93cd8acc739314d37075082c1272f88bbdebe81b (patch)
treef4070ef6bc8aafd0fd8200121ad62eea85e13257 /lib.c
parent459d6f199a8e0866a4619826cadae9a23b9efa30 (diff)
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 <jo@mein.io>
Diffstat (limited to 'lib.c')
-rw-r--r--lib.c2
1 files changed, 0 insertions, 2 deletions
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 *