mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 09:47:58 -06:00
Refactor catch(...) handlers in Http, OctoPrint, PrintHost, and Serial
This commit is contained in:
parent
baaf66d138
commit
f937209619
4 changed files with 9 additions and 11 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
#include <algorithm>
|
||||
#include <sstream>
|
||||
#include <exception>
|
||||
#include <boost/format.hpp>
|
||||
#include <boost/log/trivial.hpp>
|
||||
#include <boost/property_tree/ptree.hpp>
|
||||
|
@ -69,7 +70,7 @@ bool OctoPrint::test(wxString &msg) const
|
|||
msg = wxString::Format(_(L("Mismatched type of print host: %s")), text ? *text : "OctoPrint");
|
||||
}
|
||||
}
|
||||
catch (...) {
|
||||
catch (const std::exception &) {
|
||||
res = false;
|
||||
msg = "Could not parse server response";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue