Merge pull request #33030 from Xrayez/vformat-err-msg

Display error messages in console when vformat is called
This commit is contained in:
Rémi Verschelde 2019-10-24 16:15:57 +02:00 committed by GitHub
commit 091c37d921
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}