mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 08:23:29 +00:00
Added some obvious errors explanations
This commit is contained in:
parent
e9f49a6d5a
commit
17732fe698
125 changed files with 435 additions and 458 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue