From 4c791663ffc8443bc80a851efbcad824cd7a4e89 Mon Sep 17 00:00:00 2001 From: GeckoEidechse Date: Wed, 20 Nov 2024 21:42:47 +0100 Subject: fix: Improve error message text --- primedev/mods/modsavefiles.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/primedev/mods/modsavefiles.cpp b/primedev/mods/modsavefiles.cpp index 928f1dfd..86129cf0 100644 --- a/primedev/mods/modsavefiles.cpp +++ b/primedev/mods/modsavefiles.cpp @@ -77,7 +77,7 @@ template void SaveFileManager::SaveFileAsync(fs::path fi // Check if has extension and return early if not if (!file.has_extension()) { - spdlog::error("SAVE FAILED!"); + spdlog::error("A mod failed to save a file via Safe I/O due to the following error:"); spdlog::error("No file extension specified"); } @@ -88,7 +88,7 @@ template void SaveFileManager::SaveFileAsync(fs::path fi std::string extension = file.extension().string(); if (whitelist.find(extension) == whitelist.end()) { - spdlog::error("SAVE FAILED!"); + spdlog::error("A mod failed to save a file via Safe I/O due to the following error:"); spdlog::error("Disallowed file extension: {}", extension); } -- cgit v1.2.3