Add AssertionException, specialize pprint
diff --git a/ide/NbRuntime.cpp b/ide/NbRuntime.cpp
index 8454597..35df413 100644
--- a/ide/NbRuntime.cpp
+++ b/ide/NbRuntime.cpp
@@ -2,10 +2,12 @@
#include "NbRuntime.h"
#include "../Parser.h"
+#include "../StdLib.h"
NbRuntime::NbRuntime(QObject *parent)
: QThread(parent)
{
+ StdLib().load(_eval);
}
void NbRuntime::queueCell(Cell *cell)
@@ -118,5 +120,10 @@
_running = nullptr;
emit cellFinishedRunning(cell, RuntimeResult(ex));
}
+ catch (AssertionException &ex)
+ {
+ _running = nullptr;
+ emit cellFinishedRunning(cell, RuntimeResult(ex));
+ }
}
}