PlaceholderParser: Improved error reporting https://github.com/prusa3d/Slic3r/issues/600

Fixed '+' operator for strings.
This commit is contained in:
bubnikv 2017-12-05 17:38:29 +01:00
parent 8746f84fa2
commit c34ec9b7d3
2 changed files with 57 additions and 45 deletions

View file

@ -814,10 +814,10 @@ std::string GCode::placeholder_parser_process(const std::string &name, const std
// Collect the names of failed template substitutions for error reporting.
this->m_placeholder_parser_failed_templates.insert(name);
// Insert the macro error message into the G-code.
return
std::string("!!!!! Failed to process the custom G-code template ") + name + "\n" +
return
std::string("\n!!!!! Failed to process the custom G-code template ") + name + "\n" +
err.what() +
"!!!!! End of an error report for the custom G-code template " + name + "\n";
"!!!!! End of an error report for the custom G-code template " + name + "\n\n";
}
}