Replaced some of Slic3r::RuntimeError exceptions with Slic3r::SlicingError.

Only Slic3r::SlicingError are now displayed by a notification, other
exceptions are shown by a pop-up dialog.
This commit is contained in:
Vojtech Bubnik 2020-09-14 18:01:25 +02:00
parent 067cde85f1
commit 1eadb6a1a9
5 changed files with 16 additions and 10 deletions

View file

@ -1604,7 +1604,7 @@ void Print::process()
// Initialize the tool ordering, so it could be used by the G-code preview slider for planning tool changes and filament switches.
m_tool_ordering = ToolOrdering(*this, -1, false);
if (m_tool_ordering.empty() || m_tool_ordering.last_extruder() == unsigned(-1))
throw Slic3r::RuntimeError("The print is empty. The model is not printable with current print settings.");
throw Slic3r::SlicingError("The print is empty. The model is not printable with current print settings.");
}
this->set_done(psWipeTower);
}