diff --git a/xs/xsp/Print.xsp b/xs/xsp/Print.xsp index 7565de474..852f0dde0 100644 --- a/xs/xsp/Print.xsp +++ b/xs/xsp/Print.xsp @@ -215,7 +215,11 @@ _constant() bool has_infinite_skirt(); bool has_skirt(); std::vector extruders() const; - void validate() %code%{ std::string err = THIS->validate(); if (! err.empty()) throw std::exception(err.c_str()); %}; + void validate() %code%{ + std::string err = THIS->validate(); + if (! err.empty()) + throw std::invalid_argument(err.c_str()); + %}; Clone bounding_box(); Clone total_bounding_box(); double skirt_first_layer_height();