diff options
author | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2019-08-09 03:39:45 +0200 |
---|---|---|
committer | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2019-08-09 12:13:21 +0200 |
commit | c55ce204b3065d55df2717a7e0bcb0681392ac34 (patch) | |
tree | bc672241bc93761fd87db6ba8b1707f9a9f38a3a /modules/mono/utils/string_utils.cpp | |
parent | fe3cd5175589c27c3564224b317bbc0177a5a735 (diff) | |
download | redot-engine-c55ce204b3065d55df2717a7e0bcb0681392ac34.tar.gz |
Replace 'ERR_EXPLAIN' with 'ERR_FAIL_*_MSG' in 'modules/mono'
And 'CRASH_*_MSG' as well.
Also make error messages puntuation and quotation more consistent.
Diffstat (limited to 'modules/mono/utils/string_utils.cpp')
-rw-r--r-- | modules/mono/utils/string_utils.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/modules/mono/utils/string_utils.cpp b/modules/mono/utils/string_utils.cpp index 2b014c2a45..ae5a2cde81 100644 --- a/modules/mono/utils/string_utils.cpp +++ b/modules/mono/utils/string_utils.cpp @@ -55,10 +55,7 @@ int sfind(const String &p_text, int p_from) { for (int j = 0; j < src_len; j++) { int read_pos = i + j; - if (read_pos >= len) { - ERR_PRINT("read_pos >= len"); - return -1; - }; + ERR_FAIL_COND_V(read_pos >= len, -1); switch (j) { case 0: |