Skip to content

Commit

Permalink
fix assert message
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiosvm committed Mar 14, 2024
1 parent af92a67 commit 637f6c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/builtin.c
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ static void assert_call(HkState *state, HkValue *args)
state->flags |= HK_STATE_FLAG_NO_TRACE;
state->status = HK_STATE_STATUS_ERROR;
HkString *str = hk_as_string(args[2]);
fprintf(stderr, "assertion failed: %.*s\n", str->length, str->chars);
fprintf(stderr, "assert: %.*s\n", str->length, str->chars);
}

static void panic_call(HkState *state, HkValue *args)
Expand Down

0 comments on commit 637f6c4

Please sign in to comment.