diff options
| author | A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> | 2024-10-11 16:17:49 +0200 |
|---|---|---|
| committer | A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> | 2024-10-30 15:55:51 +0100 |
| commit | 38f9769bc6d560373df961880f99aaaafaae00d9 (patch) | |
| tree | 4bb21478d3cefde5c03c864bbaf65a31c1f7576a /core/os | |
| parent | 8004c7524fb9f43425c4d6f614410a76678e0f7c (diff) | |
| download | redot-engine-38f9769bc6d560373df961880f99aaaafaae00d9.tar.gz | |
[Core] Improve error messages with `vformat`
Diffstat (limited to 'core/os')
| -rw-r--r-- | core/os/os.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/os/os.cpp b/core/os/os.cpp index 642de11a9f..aed14d48c0 100644 --- a/core/os/os.cpp +++ b/core/os/os.cpp @@ -352,7 +352,7 @@ void OS::ensure_user_data_dir() { Ref<DirAccess> da = DirAccess::create(DirAccess::ACCESS_FILESYSTEM); Error err = da->make_dir_recursive(dd); - ERR_FAIL_COND_MSG(err != OK, "Error attempting to create data dir: " + dd + "."); + ERR_FAIL_COND_MSG(err != OK, vformat("Error attempting to create data dir: %s.", dd)); } String OS::get_model_name() const { |
