소스 검색

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

Display error messages in console when vformat is called
Rémi Verschelde 5 년 전
부모
커밋
091c37d921
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      core/variant.cpp

+ 1 - 1
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;
 }