diff options
author | Andrii Doroshenko (Xrayez) <xrayez@gmail.com> | 2019-10-24 15:14:55 +0300 |
---|---|---|
committer | Andrii Doroshenko (Xrayez) <xrayez@gmail.com> | 2019-10-24 15:14:55 +0300 |
commit | 113765b135efab9badd798ec14afbdb925d5dfc3 (patch) | |
tree | 5e1e786f94635b5c79b6b28455f4c93d5eaa5f30 | |
parent | 9008cc486e28553ff8ea07639245efedcf545be2 (diff) | |
download | redot-engine-113765b135efab9badd798ec14afbdb925d5dfc3.tar.gz |
Display error messages in console when vformat is called
-rw-r--r-- | core/variant.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/variant.cpp b/core/variant.cpp index 16bbf94c54..e0cc6685f4 100644 --- a/core/variant.cpp +++ b/core/variant.cpp @@ -3299,7 +3299,7 @@ String vformat(const String &p_text, const Variant &p1, const Variant &p2, const bool error = false; String fmt = p_text.sprintf(args, &error); - ERR_FAIL_COND_V(error, String()); + ERR_FAIL_COND_V_MSG(error, String(), fmt); return fmt; } |