Added some obvious errors explanations
This commit is contained in:
parent
e9f49a6d5a
commit
17732fe698
125 changed files with 435 additions and 458 deletions
|
|
@ -119,9 +119,7 @@ Error AudioStreamPlaybackOpus::_load_stream() {
|
|||
Error err;
|
||||
f = FileAccess::open(file, FileAccess::READ, &err);
|
||||
|
||||
if (err) {
|
||||
ERR_FAIL_COND_V(err, err);
|
||||
}
|
||||
ERR_FAIL_COND_V_MSG(err, err, "Cannot open file '" + file + "'.");
|
||||
|
||||
int _err = 0;
|
||||
|
||||
|
|
@ -185,9 +183,7 @@ Error AudioStreamPlaybackOpus::set_file(const String &p_file) {
|
|||
Error err;
|
||||
f = FileAccess::open(file, FileAccess::READ, &err);
|
||||
|
||||
if (err) {
|
||||
ERR_FAIL_COND_V(err, err);
|
||||
}
|
||||
ERR_FAIL_COND_V_MSG(err, err, "Cannot open file '" + file + "'.");
|
||||
|
||||
int _err;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue