diff options
Diffstat (limited to 'core/io/file_access_memory.cpp')
-rw-r--r-- | core/io/file_access_memory.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/io/file_access_memory.cpp b/core/io/file_access_memory.cpp index 199a51e86d..2ead49ba81 100644 --- a/core/io/file_access_memory.cpp +++ b/core/io/file_access_memory.cpp @@ -87,7 +87,7 @@ Error FileAccessMemory::open_internal(const String &p_path, int p_mode_flags) { //name = DirAccess::normalize_path(name); HashMap<String, Vector<uint8_t>>::Iterator E = files->find(name); - ERR_FAIL_COND_V_MSG(!E, ERR_FILE_NOT_FOUND, "Can't find file '" + p_path + "'."); + ERR_FAIL_COND_V_MSG(!E, ERR_FILE_NOT_FOUND, vformat("Can't find file '%s'.", p_path)); data = E->value.ptrw(); length = E->value.size(); |