diff --git a/xs/xsp/Print.xsp b/xs/xsp/Print.xsp index b8662dcd8..f4c04577d 100644 --- a/xs/xsp/Print.xsp +++ b/xs/xsp/Print.xsp @@ -165,7 +165,7 @@ _constant() try { THIS->process(); } catch (std::exception& e) { - croak(e.what()); + croak("%s\n", e.what()); } %}; @@ -173,7 +173,7 @@ _constant() try { THIS->export_gcode(path_template, nullptr); } catch (std::exception& e) { - croak(e.what()); + croak("%s\n", e.what()); } %};