diff --git a/src/Create3Widget.cpp b/src/Create3Widget.cpp index d1c4ce0d..e08edede 100644 --- a/src/Create3Widget.cpp +++ b/src/Create3Widget.cpp @@ -1,7 +1,7 @@ #include "Create3Widget.h" #include "ui_Create3Widget.h" #include "Create3SensorListWidget.h" - +#include "kj/exception.h" #include "Create3SensorModel.h" #include #include @@ -17,7 +17,7 @@ #include #include #include "RootController.h" - +#include "kipr/create3/create3.capnp.h" int exampleIndex; QStringList programList; @@ -372,6 +372,7 @@ void Create3Widget::indexChanged(int index) void Create3Widget::run() { + exampleIndex = ui->exampleComboBox->currentIndex(); switch (exampleIndex) { @@ -544,10 +545,13 @@ void Create3Widget::run() create3_wait(); printf("Done!\n"); + + } - catch (const std::exception &e) + // catch (const std::exception &e) + catch (const kj::Exception &e) { - std::cerr << e.what() << '\n'; + std::cerr << e << '\n'; } break;