1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-19 09:24:27 +00:00

Refactor a few more catch(...) instances

This commit is contained in:
Vojtech Kral
2019-08-26 17:17:23 +02:00
parent f9184f3564
commit 8b7f0c5359
3 changed files with 2 additions and 17 deletions
-12
View File
@@ -204,18 +204,6 @@ AvrDude::Ptr AvrDude::run()
message_fn("\n", 1);
}
if (self->p->complete_fn) {
self->p->complete_fn();
}
} catch (...) {
self->p->exit_code = EXIT_EXCEPTION;
static const char *msg = "An unkown exception was thrown in the background thread.\n";
if (self->p->message_fn) {
self->p->message_fn(msg, sizeof(msg));
}
if (self->p->complete_fn) {
self->p->complete_fn();
}