Skip to content

Commit fa727cf

Browse files
committed
Minor fix to escape slash chars in MException -- since it doesn't do it by itself for some reason...
1 parent eb50b8c commit fa727cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

+DSS_MATLAB/Base.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
function obj = CheckForError(obj)
2525
error = calllib('dss_capi_v7', 'Error_Get_Number');
2626
if error ~= 0
27-
ME = MException(['DSS_MATLAB:Error' int2str(error)], calllib('dss_capi_v7', 'Error_Get_Description'));
27+
ME = MException(['DSS_MATLAB:Error' int2str(error)], strrep(calllib('dss_capi_v7', 'Error_Get_Description'), '\', '\\'));
2828
throw(ME);
2929
end
3030
end

0 commit comments

Comments
 (0)