From 228fc1642f2f71a84259c103919f49a722a56412 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Fri, 30 Mar 2018 03:48:16 -0300 Subject: [PATCH] Fix coverity defect: Uncaught Exception --- src/HighScore.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/HighScore.cpp b/src/HighScore.cpp index c8e92a3199..b5783581e7 100644 --- a/src/HighScore.cpp +++ b/src/HighScore.cpp @@ -672,13 +672,13 @@ bool HighScore::LoadReplayData() { noteRow = std::stoi(tokens[0]); if (!(typeid(noteRow) == typeid(int))) { - throw std::runtime_error("NoteRow value is not of type: int"); + LOG->Warn("Failed to load replay data at %s (\"NoteRow value is not of type: int\")", path.c_str()); } vNoteRowVector.emplace_back(noteRow); offset = std::stof(tokens[1]); if (!(typeid(offset) == typeid(float))) { - throw std::runtime_error("Offset value is not of type: float"); + LOG->Warn("Failed to load replay data at %s (\"Offset value is not of type: float\")", path.c_str()); } vOffsetVector.emplace_back(offset); tokens.clear();