From b636bb0bf87a3bd823036ec2bcd2b9f923808099 Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Sun, 26 Oct 2014 11:03:37 +0000 Subject: [PATCH] Improved a few error messages slightly. --- src/gui/handler.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/handler.cpp b/src/gui/handler.cpp index c2650242..0b3d2a44 100644 --- a/src/gui/handler.cpp +++ b/src/gui/handler.cpp @@ -761,12 +761,12 @@ namespace loot { callback->Success(JSON::stringify(gameNode)); } catch (loot::error &e) { - BOOST_LOG_TRIVIAL(error) << "Failed to change game. Details: " << e.what(); - callback->Failure(e.code(), string("Failed to change game. Details: ") + e.what()); + BOOST_LOG_TRIVIAL(error) << "Failed to get game data. Details: " << e.what(); + callback->Failure(e.code(), string("Failed to get game data. Details: ") + e.what()); } catch (std::exception& e) { - BOOST_LOG_TRIVIAL(error) << "Failed to change game. Details: " << e.what(); - callback->Failure(-1, string("Failed to change game. Details: ") + e.what()); + BOOST_LOG_TRIVIAL(error) << "Failed to get game data. Details: " << e.what(); + callback->Failure(-1, string("Failed to get game data. Details: ") + e.what()); } }