summaryrefslogtreecommitdiffstats
path: root/core/io/dir_access.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/io/dir_access.h')
-rw-r--r--core/io/dir_access.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/io/dir_access.h b/core/io/dir_access.h
index 2567764e55..670c512ea9 100644
--- a/core/io/dir_access.h
+++ b/core/io/dir_access.h
@@ -118,10 +118,10 @@ public:
Ref<DirAccess> da = create(ACCESS_FILESYSTEM);
if (da->file_exists(p_path)) {
if (da->remove(p_path) != OK) {
- ERR_FAIL_MSG("Cannot remove file or directory: " + p_path);
+ ERR_FAIL_MSG(vformat("Cannot remove file or directory: '%s'.", p_path));
}
} else {
- ERR_FAIL_MSG("Cannot remove non-existent file or directory: " + p_path);
+ ERR_FAIL_MSG(vformat("Cannot remove non-existent file or directory: '%s'.", p_path));
}
}