Skip to content

Commit

Permalink
Update error message ID
Browse files Browse the repository at this point in the history
  • Loading branch information
sgilmore10 committed Dec 4, 2024
1 parent ac2c18a commit cd08378
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion matlab/src/matlab/+arrow/+io/+ipc/RecordBatchWriter.m
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function write(obj, tabularObj)
elseif isa(tabularObj, "arrow.tabular.Table")
obj.writeTable(tabularObj);
else
id = "arrow:matlab:io:ipc:write:InvalidType";
id = "arrow:io:ipc:write:InvalidType";
msg = "Input must be an instance of " + ...
"either arrow.tabular.RecordBatch or arrow.tabular.Table.";
error(id, msg);
Expand Down
2 changes: 1 addition & 1 deletion matlab/test/arrow/io/ipc/tRecordBatchWriter.m
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ function writeInvalidType(testCase, WriterConstructor)
schema = arrow.schema(arrow.field("A", arrow.float64()));
writer = WriterConstructor(fname, schema);
fcn = @() writer.write(schema);
testCase.verifyError(fcn, "arrow:matlab:ipc:write:InvalidType");
testCase.verifyError(fcn, "arrow:io:ipc:write:InvalidType");
end

function writeRecordBatchInvalidSchema(testCase, WriterConstructor)
Expand Down

0 comments on commit cd08378

Please sign in to comment.