summaryrefslogtreecommitdiff
path: root/core/error_macros.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2020-01-26 16:39:11 +0100
committerGitHub <noreply@github.com>2020-01-26 16:39:11 +0100
commitc8d64de76615a5519b034b274585e7567d67567d (patch)
treeb6bf6ee225fdf53b7a6181d38868f1f27bf35fb1 /core/error_macros.cpp
parent4cee1cda5e8f66467ea7f29f60cc3a0444ab58aa (diff)
parent37d55ff1531c8d916a89b930b6e38d7c9d2b0e7e (diff)
Merge pull request #35521 from Calinou/improve-error-macros
Improve and document error macros
Diffstat (limited to 'core/error_macros.cpp')
-rw-r--r--core/error_macros.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/error_macros.cpp b/core/error_macros.cpp
index 6dd7dd5e1c..f6da990562 100644
--- a/core/error_macros.cpp
+++ b/core/error_macros.cpp
@@ -106,7 +106,7 @@ 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 fatal) {
String fstr(fatal ? "FATAL: " : "");
- String err(fstr + "Index " + p_index_str + "=" + itos(p_index) + " out of size (" + p_size_str + "=" + itos(p_size) + ")");
+ 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);
}