summaryrefslogtreecommitdiffstats
path: root/core/variant_call.cpp
diff options
context:
space:
mode:
authorBraden Bodily <thebodily@gmail.com>2019-08-14 20:57:49 -0600
committerRémi Verschelde <rverschelde@gmail.com>2019-08-17 12:33:15 +0200
commit71d71d55b5c0d6da4d1555823ac432bf0b33389a (patch)
tree20b2e819d599d6d1bd459bb51880c31e97cfe825 /core/variant_call.cpp
parent40640a01dc90be00e55e4eef3c7800401ef63b18 (diff)
downloadredot-engine-71d71d55b5c0d6da4d1555823ac432bf0b33389a.tar.gz
Replace 'ERR_EXPLAIN' with 'ERR_FAIL_*_MSG' in 'core/' and 'editor/'
Condensed some if and ERR statements. Added dots to end of error messages Couldn't figure out EXPLAINC. These files gave me trouble: core/error_macros.h, core/io/file_access_buffered_fa.h (where is it?), core/os/memory.cpp, drivers/png/png_driver_common.cpp, drivers/xaudio2/audio_driver_xaudio2.cpp (where is it?)
Diffstat (limited to 'core/variant_call.cpp')
-rw-r--r--core/variant_call.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/variant_call.cpp b/core/variant_call.cpp
index eca5d0567b..9ea2fed5ae 100644
--- a/core/variant_call.cpp
+++ b/core/variant_call.cpp
@@ -584,8 +584,7 @@ struct _VariantCall {
if (buffer_size < 0) {
r_ret = decompressed;
- ERR_EXPLAIN("Decompression buffer size is less than zero");
- ERR_FAIL();
+ ERR_FAIL_MSG("Decompression buffer size is less than zero.");
}
decompressed.resize(buffer_size);