Added some obvious errors explanations

This commit is contained in:
qarmin committed 2019-09-25 10:28:50 +02:00
1 parent e9f49a6d5a
commit 17732fe698
125 files changed
+435 -458

No files matched your search

@@ -401,9 +401,7 @@ Error PluginScript::load_source_code(const String &p_path) {
PoolVector<uint8_t> sourcef;
Error err;
FileAccess *f = FileAccess::open(p_path, FileAccess::READ, &err);
if (err) {
ERR_FAIL_COND_V(err, err);
}
ERR_FAIL_COND_V_MSG(err, err, "Cannot open file '" + p_path + "'.");
int len = f->get_len();
sourcef.resize(len + 1);