Skip to content

Commit d33664d

Browse files
committed
[Matlab] Refactor nix.Property.set_value error
1 parent 7ccbfa0 commit d33664d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

+nix/Property.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@
4848
end
4949

5050
if (~strcmpi(class(curr), obj.datatype))
51-
error('Values do not match property data type!');
51+
err.identifier = 'NIXMX:InvalidArgument';
52+
err.message = sprintf('Value #%d does not match property data type', i);
53+
error(err);
5254
end
5355
end
5456

0 commit comments

Comments
 (0)