ENH: save error code to slice info
Change-Id: Ic70ef81775c23d160f40ff29f02cc9e1f9d336d6 Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
parent
7f53455105
commit
cd1210b0ca
|
@ -5704,7 +5704,7 @@ void PlateData::parse_filament_info(GCodeProcessorResult *result)
|
|||
}
|
||||
|
||||
for (auto it = plate_data->warnings.begin(); it != plate_data->warnings.end(); it++) {
|
||||
stream << " <" << SLICE_WARNING_TAG << " " << "msg=\"" << it->msg << "\" " << "level=\"" << std::to_string(it->level) << "\" />\n";
|
||||
stream << " <" << SLICE_WARNING_TAG << " msg=\"" << it->msg << "\" level=\"" << std::to_string(it->level) << "\" error_code =\"" << it->error_code << "\" />\n";
|
||||
}
|
||||
stream << " </" << PLATE_TAG << ">\n";
|
||||
}
|
||||
|
|
|
@ -4014,7 +4014,8 @@ void GCodeProcessor::update_slice_warnings()
|
|||
}
|
||||
|
||||
if (!warning.params.empty()) {
|
||||
warning.msg = BED_TEMP_TOO_HIGH_THAN_FILAMENT;
|
||||
warning.msg = BED_TEMP_TOO_HIGH_THAN_FILAMENT;
|
||||
warning.error_code = "10004001";
|
||||
m_result.warnings.push_back(warning);
|
||||
|
||||
//bbs:HRC checker
|
||||
|
|
|
@ -136,6 +136,7 @@ namespace Slic3r {
|
|||
struct SliceWarning {
|
||||
int level; // 0: normal tips, 1: warning; 2: error
|
||||
std::string msg; // enum string
|
||||
std::string error_code; // error code for studio
|
||||
std::vector<std::string> params; // extra msg info
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue