harec

[hare] Hare compiler, written in C11 for POSIX OSs
Log | Files | Refs | README | LICENSE

commit 8a8bce43afb87731d98f65875329e7ab5cac68bb
parent 8c8b088b5f33ac89504b4df37e526e69334dc220
Author: Sebastian <sebastian@sebsite.pw>
Date:   Fri, 17 Jun 2022 17:29:07 -0400

check: add newline to memstream error message

Signed-off-by: Sebastian <sebastian@sebsite.pw>

Diffstat:
Msrc/check.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/check.c b/src/check.c @@ -33,7 +33,7 @@ gen_typename(const struct type *type) char *ptr = NULL; FILE *f = open_memstream(&ptr, &sz); if (f == NULL) { - fprintf(stderr, "Unable to open memstream: %s", + fprintf(stderr, "Unable to open memstream: %s\n", strerror(errno)); exit(EXIT_FAILURE); }