Display error messages in console when vformat is called

This commit is contained in:
Andrii Doroshenko (Xrayez) 2019-10-24 15:14:55 +03:00
parent 9008cc486e
commit 113765b135

View file

@ -3299,7 +3299,7 @@ String vformat(const String &p_text, const Variant &p1, const Variant &p2, const
bool error = false; bool error = false;
String fmt = p_text.sprintf(args, &error); String fmt = p_text.sprintf(args, &error);
ERR_FAIL_COND_V(error, String()); ERR_FAIL_COND_V_MSG(error, String(), fmt);
return fmt; return fmt;
} }