summaryrefslogtreecommitdiffstats
path: root/core/io/file_access_compressed.cpp
diff options
context:
space:
mode:
authorGeorge L. Albany <Megacake1234@gmail.com>2024-11-03 05:10:14 +0000
committerGitHub <noreply@github.com>2024-11-03 05:10:14 +0000
commit70f9c12cfbcea6dff89b2a6f4868a9e6fe3866f8 (patch)
treef202e4a27092f0fdd9d579eb46e6828ecb4673e1 /core/io/file_access_compressed.cpp
parent9043ceac65972c4195dd71f15a8a1cc7aa72985f (diff)
parenta684ee1dec108bb1a050f07ec3dd73fd5ef02dbc (diff)
downloadredot-engine-70f9c12cfbcea6dff89b2a6f4868a9e6fe3866f8.tar.gz
Merge pull request #834 from Spartan322/merge/c6c464c
Merge commit godotengine/godot@c6c464c
Diffstat (limited to 'core/io/file_access_compressed.cpp')
-rw-r--r--core/io/file_access_compressed.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/io/file_access_compressed.cpp b/core/io/file_access_compressed.cpp
index 05335df9e9..84137251ef 100644
--- a/core/io/file_access_compressed.cpp
+++ b/core/io/file_access_compressed.cpp
@@ -60,7 +60,7 @@ Error FileAccessCompressed::open_after_magic(Ref<FileAccess> p_base) {
block_size = f->get_32();
if (block_size == 0) {
f.unref();
- ERR_FAIL_V_MSG(ERR_FILE_CORRUPT, "Can't open compressed file '" + p_base->get_path() + "' with block size 0, it is corrupted.");
+ ERR_FAIL_V_MSG(ERR_FILE_CORRUPT, vformat("Can't open compressed file '%s' with block size 0, it is corrupted.", p_base->get_path()));
}
read_total = f->get_32();
uint32_t bc = (read_total / block_size) + 1;