diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2024-06-07 17:36:23 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-07 17:36:23 +0200 |
| commit | 4c45f7d3ae4e71313e0825e0b53b4c3225169b65 (patch) | |
| tree | acb27cd25a87ca31e25a6c7c72f6ab1460e4e6e8 /src/error.cpp | |
| parent | 11137cfec5c241c08899f5eec3c39d9852945025 (diff) | |
| parent | e627fcb0e66421d52526d844c01065ba0e043c5e (diff) | |
Merge pull request #3698 from laytan/utilize-odin-test-instead-of-scrips-to-run-tests
Utilise `odin test` instead of scripts to run tests
Diffstat (limited to 'src/error.cpp')
| -rw-r--r-- | src/error.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/error.cpp b/src/error.cpp index 2556a8de4..eed69b779 100644 --- a/src/error.cpp +++ b/src/error.cpp @@ -390,8 +390,6 @@ gb_internal void error_va(TokenPos const &pos, TokenPos end, char const *fmt, va error_out_empty(); } else { error_out_pos(pos); - } - if (has_ansi_terminal_colours()) { error_out_coloured("Error: ", TerminalStyle_Normal, TerminalColour_Red); } error_out_va(fmt, va); @@ -427,8 +425,8 @@ gb_internal void warning_va(TokenPos const &pos, TokenPos end, char const *fmt, error_out_empty(); } else { error_out_pos(pos); + error_out_coloured("Warning: ", TerminalStyle_Normal, TerminalColour_Yellow); } - error_out_coloured("Warning: ", TerminalStyle_Normal, TerminalColour_Yellow); error_out_va(fmt, va); error_out("\n"); show_error_on_line(pos, end); @@ -841,4 +839,4 @@ gb_internal void print_all_errors(void) { gb_file_write(f, res, gb_string_length(res)); errors_already_printed = true; -}
\ No newline at end of file +} |