Skip to content

Commit 93b9ec8

Browse files
committed
Bring back printError
1 parent 2a04052 commit 93b9ec8

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

include/Printer.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ namespace Printer
4646
void println(const String &str);
4747

4848
// Utility functions
49+
void printError(const String &error);
4950
void printChrono(Chrono chrono);
5051

5152
/**

src/Printer.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,13 @@ Format Specifier
220220
println();
221221
}
222222

223+
void printError(const String &error)
224+
{
225+
println("!!!---------- ERROR ----------!!!");
226+
println(error);
227+
println("!!!---------- ERROR ----------!!!");
228+
}
229+
223230
void printChrono(Chrono chrono)
224231
{
225232
println("Chrono ["+chrono.name+"]: " + String(chrono.elapsedTime) + " µs");

0 commit comments

Comments
 (0)