summaryrefslogtreecommitdiff
path: root/mm/2s2h/Rando/Spoiler/File.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mm/2s2h/Rando/Spoiler/File.cpp')
-rw-r--r--mm/2s2h/Rando/Spoiler/File.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/mm/2s2h/Rando/Spoiler/File.cpp b/mm/2s2h/Rando/Spoiler/File.cpp
index c54f6ac3b..e2f610dfe 100644
--- a/mm/2s2h/Rando/Spoiler/File.cpp
+++ b/mm/2s2h/Rando/Spoiler/File.cpp
@@ -26,9 +26,7 @@ nlohmann::json LoadFromFile(const std::string& fileName) {
nlohmann::json spoiler;
try {
fileStream >> spoiler;
- } catch (nlohmann::json::exception& e) {
- throw std::runtime_error("Failed to parse spoiler file: " + std::string(e.what()));
- }
+ } catch (nlohmann::json::exception& e) { throw std::runtime_error("Failed to parse spoiler file"); }
if (!spoiler.contains("type") || spoiler["type"] != "2S2H_RANDO_SPOILER") {
throw std::runtime_error("Spoiler file is not a valid spoiler file");