aboutsummaryrefslogtreecommitdiff
path: root/qtmips_cli
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2018-01-01 21:29:37 +0100
committerKarel Kočí <cynerd@email.cz>2018-01-01 21:29:37 +0100
commit7cc95c3a57a79864fa60de4827193fa7aadac92c (patch)
treec640ac942c2f395e6f4cef06b6d22b5cdfc878f3 /qtmips_cli
parent7e942e26074107153d4a553df22b83b96ee3deaa (diff)
downloadqtmips-7cc95c3a57a79864fa60de4827193fa7aadac92c.tar.gz
qtmips-7cc95c3a57a79864fa60de4827193fa7aadac92c.tar.bz2
qtmips-7cc95c3a57a79864fa60de4827193fa7aadac92c.zip
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.
Diffstat (limited to 'qtmips_cli')
-rw-r--r--qtmips_cli/reporter.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}