Replace 'ERR_EXPLAIN' with 'ERR_FAIL_*_MSG' in "main" and "servers" directories
This commit is contained in:
parent
7bb2215ed0
commit
5ca7460421
9 changed files with 37 additions and 114 deletions
|
|
@ -494,11 +494,7 @@ MainLoop *test() {
|
|||
}
|
||||
|
||||
FileAccess *fa = FileAccess::open(test, FileAccess::READ);
|
||||
|
||||
if (!fa) {
|
||||
ERR_EXPLAIN("Could not open file: " + test);
|
||||
ERR_FAIL_V(NULL);
|
||||
}
|
||||
ERR_FAIL_COND_V_MSG(!fa, NULL, "Could not open file: " + test);
|
||||
|
||||
Vector<uint8_t> buf;
|
||||
int flen = fa->get_len();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue