From b479cf3dea3952db5586e33cba127885f388d8af Mon Sep 17 00:00:00 2001 From: ALittlePatate Date: Thu, 18 Jan 2024 16:34:24 +0100 Subject: [PATCH] add: newlines in error messages --- src/pasm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pasm.c b/src/pasm.c index 4dbbbc1..ed73f93 100644 --- a/src/pasm.c +++ b/src/pasm.c @@ -49,13 +49,13 @@ int check_errors(char *line) { if (state->last_jmp_code) { show_error(state->curr_line, line); - fprintf(fstream, "%s is not a valid label/api", state->args->arg1); + fprintf(fstream, "%s is not a valid label/api\n", state->args->arg1); return 1; } if (state->last_stack_code != STACK_OK) { show_error(state->curr_line, line); - fprintf(fstream, "stack %s on line %d", + fprintf(fstream, "stack %s on line %d\n", state->last_stack_code == OVERFLOW ? "overflow" : "underflow", state->curr_line + 1); return 1; }