From 2a50bb8f30791668b9f7a4b47052f7858638257f Mon Sep 17 00:00:00 2001 From: Erin Date: Tue, 16 Apr 2024 14:19:05 -0500 Subject: [PATCH] Added includes --- src/Create3Widget.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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;