Skip to content

Commit 410f289

Browse files
3dJanCopilot
andauthored
Update gladius/src/io/3mf/Importer3mf.cpp
Co-authored-by: Copilot <[email protected]> Signed-off-by: 3dJan <[email protected]>
1 parent 78bf92a commit 410f289

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

gladius/src/io/3mf/Importer3mf.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ namespace gladius::io
8484
}
8585
catch (std::exception & e)
8686
{
87-
std::cerr << e.what() << std::endl;
87+
if (m_eventLogger) {
88+
m_eventLogger->addEvent({fmt::format("Error initializing Importer3mf: {}", e.what()), events::Severity::Error});
89+
}
8890
return;
8991
}
9092
}

0 commit comments

Comments
 (0)