mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-22 00:01:09 -06:00
Improved error handling when importing configuration from a G-code.
This commit is contained in:
parent
f7334f58d3
commit
2ac981e422
5 changed files with 47 additions and 15 deletions
|
@ -39,7 +39,14 @@
|
|||
%name{setenv} void setenv_();
|
||||
double min_object_distance();
|
||||
%name{_load} void load(std::string file);
|
||||
%name{_load_from_gcode} void load_from_gcode(std::string file);
|
||||
%name{_load_from_gcode} void load_from_gcode(std::string input_file)
|
||||
%code%{
|
||||
try {
|
||||
THIS->load_from_gcode(input_file);
|
||||
} catch (std::exception& e) {
|
||||
croak("Error exracting configuration from a g-code %s:\n%s\n", input_file.c_str(), e.what());
|
||||
}
|
||||
%};
|
||||
%name{_save} void save(std::string file);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue