From 24a82463b683322a6bb11a103746ea9d9b3f53fb Mon Sep 17 00:00:00 2001 From: Moritz Pflanzer Date: Fri, 4 Aug 2017 11:34:44 +0100 Subject: COMPMID-415: Use printer for errors Change-Id: Idc2fc1dfd5706580d15c2bbfffe2830d41075a4b Reviewed-on: http://mpd-gerrit.cambridge.arm.com/82908 Reviewed-by: Anthony Barbier Tested-by: Kaizen --- framework/printers/PrettyPrinter.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'framework/printers/PrettyPrinter.cpp') diff --git a/framework/printers/PrettyPrinter.cpp b/framework/printers/PrettyPrinter.cpp index fd90401693..631d96917a 100644 --- a/framework/printers/PrettyPrinter.cpp +++ b/framework/printers/PrettyPrinter.cpp @@ -88,6 +88,19 @@ void PrettyPrinter::print_test_footer() { } +void PrettyPrinter::print_errors_header() +{ +} + +void PrettyPrinter::print_errors_footer() +{ +} + +void PrettyPrinter::print_error(const std::exception &error) +{ + *_stream << begin_color("1") << error.what() << end_color() << "\n"; +} + void PrettyPrinter::print_measurements(const Profiler::MeasurementsMap &measurements) { for(const auto &instrument : measurements) -- cgit v1.2.1