From 7cc95c3a57a79864fa60de4827193fa7aadac92c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 1 Jan 2018 21:29:37 +0100 Subject: Simplify how we define exceptions Exceptions definition was pretty much just copy and past. That can do preprocessor for us too so use it for it. --- qtmips_cli/reporter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qtmips_cli') diff --git a/qtmips_cli/reporter.cpp b/qtmips_cli/reporter.cpp index 70d1d27..bcb9d65 100644 --- a/qtmips_cli/reporter.cpp +++ b/qtmips_cli/reporter.cpp @@ -48,7 +48,7 @@ void Reporter::machine_trap(QtMipsException &e) { else if (etype == typeid(QtMipsExceptionUnalignedJump)) expected = e_fail & FR_J; - cout << "Machine trapped: " << e.what() << endl; + cout << "Machine trapped: " << e.msg(false).toStdString() << endl; app->exit(expected ? 0 : 1); } -- cgit v1.2.3