aboutsummaryrefslogtreecommitdiff
path: root/framework/printers/PrettyPrinter.cpp
diff options
context:
space:
mode:
authorMoritz Pflanzer <moritz.pflanzer@arm.com>2017-08-04 11:34:44 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-09-17 14:16:42 +0100
commit24a82463b683322a6bb11a103746ea9d9b3f53fb (patch)
treea444ba8dcc8c3cddd2540e722de49de7c0676e73 /framework/printers/PrettyPrinter.cpp
parent4dfc235367e602a366952a8495679e339d7a7263 (diff)
downloadComputeLibrary-24a82463b683322a6bb11a103746ea9d9b3f53fb.tar.gz
COMPMID-415: Use printer for errors
Change-Id: Idc2fc1dfd5706580d15c2bbfffe2830d41075a4b Reviewed-on: http://mpd-gerrit.cambridge.arm.com/82908 Reviewed-by: Anthony Barbier <anthony.barbier@arm.com> Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Diffstat (limited to 'framework/printers/PrettyPrinter.cpp')
-rw-r--r--framework/printers/PrettyPrinter.cpp13
1 files changed, 13 insertions, 0 deletions
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)