Skip to content

Commit

Permalink
fix: Add missing return
Browse files Browse the repository at this point in the history
  • Loading branch information
GeckoEidechse committed Nov 20, 2024
1 parent 51d651b commit 0929279
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions primedev/mods/modsavefiles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ template <ScriptContext context> void SaveFileManager::SaveFileAsync(fs::path fi
{
spdlog::error("A mod failed to save a file via Safe I/O due to the following error:");
spdlog::error("No file extension specified");
return;
}

// If there's a file extension missing here that you need, feel free to make a PR adding it
Expand All @@ -90,6 +91,7 @@ template <ScriptContext context> void SaveFileManager::SaveFileAsync(fs::path fi
{
spdlog::error("A mod failed to save a file via Safe I/O due to the following error:");
spdlog::error("Disallowed file extension: {}", extension);
return;
}

try
Expand Down

0 comments on commit 0929279

Please sign in to comment.