From cd08378684274fe3be67820db1f5b03cb964ed4a Mon Sep 17 00:00:00 2001 From: Sarah Gilmore Date: Wed, 4 Dec 2024 10:48:52 -0500 Subject: [PATCH] Update error message ID --- matlab/src/matlab/+arrow/+io/+ipc/RecordBatchWriter.m | 2 +- matlab/test/arrow/io/ipc/tRecordBatchWriter.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/matlab/src/matlab/+arrow/+io/+ipc/RecordBatchWriter.m b/matlab/src/matlab/+arrow/+io/+ipc/RecordBatchWriter.m index 68fb1467fbec6..a662392cc6f47 100644 --- a/matlab/src/matlab/+arrow/+io/+ipc/RecordBatchWriter.m +++ b/matlab/src/matlab/+arrow/+io/+ipc/RecordBatchWriter.m @@ -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); diff --git a/matlab/test/arrow/io/ipc/tRecordBatchWriter.m b/matlab/test/arrow/io/ipc/tRecordBatchWriter.m index d1544a97f0415..55802e31f885d 100644 --- a/matlab/test/arrow/io/ipc/tRecordBatchWriter.m +++ b/matlab/test/arrow/io/ipc/tRecordBatchWriter.m @@ -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)