Skip to content

Commit 06eb9e0

Browse files
Raylase Card: Added more verbose error logging
1 parent 9d7cd94 commit 06eb9e0

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Drivers/RayLase/Implementation/libmcdriver_raylase_raylasecard.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,22 @@ void CRaylaseCard::DrawLayerWithCallback(const std::string& sStreamUUID, const L
245245
pDriverEnvironment->LogMessage("Deleting list from card");
246246

247247
}
248+
catch (std::exception & E)
249+
{
250+
pDriverEnvironment->LogWarning("Fatal Error occured: " + std::string (E.what ()));
251+
252+
// Abort execution, if it is still running
253+
m_pRaylaseCardImpl->abortListExecution();
254+
255+
// Always delete list on card
256+
pList->deleteListListOnCard();
257+
258+
throw;
259+
}
248260
catch (...)
249261
{
262+
pDriverEnvironment->LogWarning("Unknown fatal error occured");
263+
250264
// Abort execution, if it is still running
251265
m_pRaylaseCardImpl->abortListExecution();
252266

0 commit comments

Comments
 (0)