From 2fccd188df6964df5ba7a2de7a80c407b00202ba Mon Sep 17 00:00:00 2001 From: Kevin Gurney Date: Wed, 18 Dec 2024 15:21:46 -0500 Subject: [PATCH] Fix incorrect error message ID being used when unable to open file for read. --- .../cpp/arrow/matlab/io/ipc/proxy/record_batch_stream_reader.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matlab/src/cpp/arrow/matlab/io/ipc/proxy/record_batch_stream_reader.cc b/matlab/src/cpp/arrow/matlab/io/ipc/proxy/record_batch_stream_reader.cc index cf167879f2f9f..33f04c3fc2edc 100644 --- a/matlab/src/cpp/arrow/matlab/io/ipc/proxy/record_batch_stream_reader.cc +++ b/matlab/src/cpp/arrow/matlab/io/ipc/proxy/record_batch_stream_reader.cc @@ -51,7 +51,7 @@ libmexclass::proxy::MakeResult RecordBatchStreamReader::make( error::UNICODE_CONVERSION_ERROR_ID); MATLAB_ASSIGN_OR_ERROR(auto input_stream, arrow::io::ReadableFile::Open(filename_utf8), - error::FAILED_TO_OPEN_FILE_FOR_WRITE); + error::FAILED_TO_OPEN_FILE_FOR_READ); MATLAB_ASSIGN_OR_ERROR(auto reader, arrow::ipc::RecordBatchStreamReader::Open(input_stream),