summaryrefslogtreecommitdiffstats
path: root/core/io/file_access_encrypted.cpp
diff options
context:
space:
mode:
authorA Thousand Ships <96648715+AThousandShips@users.noreply.github.com>2024-10-11 16:17:49 +0200
committerA Thousand Ships <96648715+AThousandShips@users.noreply.github.com>2024-10-30 15:55:51 +0100
commit38f9769bc6d560373df961880f99aaaafaae00d9 (patch)
tree4bb21478d3cefde5c03c864bbaf65a31c1f7576a /core/io/file_access_encrypted.cpp
parent8004c7524fb9f43425c4d6f614410a76678e0f7c (diff)
downloadredot-engine-38f9769bc6d560373df961880f99aaaafaae00d9.tar.gz
[Core] Improve error messages with `vformat`
Diffstat (limited to 'core/io/file_access_encrypted.cpp')
-rw-r--r--core/io/file_access_encrypted.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/io/file_access_encrypted.cpp b/core/io/file_access_encrypted.cpp
index 13d1e0c8fc..24be9ef230 100644
--- a/core/io/file_access_encrypted.cpp
+++ b/core/io/file_access_encrypted.cpp
@@ -37,7 +37,7 @@
#include <stdio.h>
Error FileAccessEncrypted::open_and_parse(Ref<FileAccess> p_base, const Vector<uint8_t> &p_key, Mode p_mode, bool p_with_magic) {
- ERR_FAIL_COND_V_MSG(file.is_valid(), ERR_ALREADY_IN_USE, "Can't open file while another file from path '" + file->get_path_absolute() + "' is open.");
+ ERR_FAIL_COND_V_MSG(file.is_valid(), ERR_ALREADY_IN_USE, vformat("Can't open file while another file from path '%s' is open.", file->get_path_absolute()));
ERR_FAIL_COND_V(p_key.size() != 32, ERR_INVALID_PARAMETER);
pos = 0;