Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions MMCore/Devices/DeviceInstance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,9 @@ DeviceInstance::MakeException() const
CMMError
DeviceInstance::MakeExceptionForCode(int code) const
{
return CMMError("Error in device " + ToQuotedString(GetLabel()) + ": " +
GetErrorText(code) + " (" + ToString(code) + ")");
// 2025.05.20.bp: Propose passing exception code as 2nd parameter to constructor, overriding default.
return CMMError("Error in device " + ToQuotedString(GetLabel()) + ": " +
GetErrorText(code) + " (" + ToString(code) + ")", (CMMError::Code)code);
}

void
Expand Down