summaryrefslogtreecommitdiffstats
path: root/core/error/error_macros.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-01-22 16:08:34 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-01-22 16:08:34 +0100
commit56fdef281ecc40e8ce10d4e17aa1357b150aca18 (patch)
treed0baa4f300b6fcbff4a4bc52dec2a956d2ac8bdd /core/error/error_macros.cpp
parent0440b3cf0e60461d6ecfb9ed2d12b06fe901671c (diff)
parent22c178582631ae8a2b7c60c0bcb0ce4cd9e04de4 (diff)
downloadredot-engine-56fdef281ecc40e8ce10d4e17aa1357b150aca18.tar.gz
Merge pull request #71851 from mihe/error-macros
Fix incorrect index error macros
Diffstat (limited to 'core/error/error_macros.cpp')
-rw-r--r--core/error/error_macros.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/error/error_macros.cpp b/core/error/error_macros.cpp
index ddfee3fc5d..8376c0aaf8 100644
--- a/core/error/error_macros.cpp
+++ b/core/error/error_macros.cpp
@@ -118,11 +118,11 @@ void _err_print_error(const char *p_function, const char *p_file, int p_line, co
void _err_print_index_error(const char *p_function, const char *p_file, int p_line, int64_t p_index, int64_t p_size, const char *p_index_str, const char *p_size_str, const char *p_message, bool p_editor_notify, bool p_fatal) {
String fstr(p_fatal ? "FATAL: " : "");
String err(fstr + "Index " + p_index_str + " = " + itos(p_index) + " is out of bounds (" + p_size_str + " = " + itos(p_size) + ").");
- _err_print_error(p_function, p_file, p_line, err.utf8().get_data(), p_message);
+ _err_print_error(p_function, p_file, p_line, err.utf8().get_data(), p_message, p_editor_notify, ERR_HANDLER_ERROR);
}
void _err_print_index_error(const char *p_function, const char *p_file, int p_line, int64_t p_index, int64_t p_size, const char *p_index_str, const char *p_size_str, const String &p_message, bool p_editor_notify, bool p_fatal) {
- _err_print_index_error(p_function, p_file, p_line, p_index, p_size, p_index_str, p_size_str, p_message.utf8().get_data(), p_fatal);
+ _err_print_index_error(p_function, p_file, p_line, p_index, p_size, p_index_str, p_size_str, p_message.utf8().get_data(), p_editor_notify, p_fatal);
}
void _err_flush_stdout() {