Skip to content

Commit

Permalink
Mention "bootstrap" in bootstrap compiler's errors and warnings (#581)
Browse files Browse the repository at this point in the history
  • Loading branch information
Akuli authored Jan 10, 2025
1 parent ee8280a commit 8b3a71e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bootstrap_compiler/fail.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ void show_warning(Location location, const char *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
print_message(location, "compiler warning for file \"%s\"", fmt, ap);
print_message(location, "bootstrap compiler warning for file \"%s\"", fmt, ap);
va_end(ap);
}

noreturn void fail(Location location, const char *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
print_message(location, "compiler error in file \"%s\"", fmt, ap);
print_message(location, "bootstrap compiler error in file \"%s\"", fmt, ap);
va_end(ap);
exit(1);
}

0 comments on commit 8b3a71e

Please sign in to comment.