From 7a229a2e64ac6350a9655689cd2957e80319f57f Mon Sep 17 00:00:00 2001 From: eidheim Date: Sun, 20 Dec 2015 08:23:20 +0100 Subject: [PATCH] More consistant error messages --- src/cmake.cc | 2 +- src/config.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmake.cc b/src/cmake.cc index e33bde2..51f0b60 100644 --- a/src/cmake.cc +++ b/src/cmake.cc @@ -59,7 +59,7 @@ boost::filesystem::path CMake::get_default_build_path(const boost::filesystem::p boost::system::error_code ec; boost::filesystem::create_directories(default_build_path, ec); if(ec) { - Terminal::get().print("Could not create "+default_build_path.string()+": "+ec.message(), true); + Terminal::get().print("Error: could not create "+default_build_path.string()+": "+ec.message(), true); return boost::filesystem::path(); } } diff --git a/src/config.cc b/src/config.cc index aa583fd..732344f 100644 --- a/src/config.cc +++ b/src/config.cc @@ -36,7 +36,7 @@ void Config::load() { retrieve_config(); } catch(const std::exception &e) { - ::Terminal::get().print("Error reading "+config_json+": "+e.what()+"\n"); + ::Terminal::get().print("Error: could not parse "+config_json+": "+e.what()+"\n", true); std::stringstream ss; ss << configjson; boost::property_tree::read_json(ss, cfg);