sgilmore10 opened a new issue, #37245:
URL: https://github.com/apache/arrow/issues/37245
### Describe the bug, including details regarding any error messages,
version, and platform.
When constructing the message to display for a
`arrow:proxy:ProxyNameMismatch` error, `arrow.internal.proxy.validate` refers
to an undefined variable. This causes the function to thrown a
`MATLAB:UndefinedFunction` error instead of the intended one.
See the example below:
```matlab
>> a = arrow.array([1 2 3]);
>> arrow.internal.proxy.validate(a.Proxy, "WrongProxyName")
Unrecognized function or variable 'proxyName'.
Error in arrow.internal.proxy.validate (line 26)
msg = "Proxy class name is " + proxyName + ", but expected " +
expectedProxyName;
```
This was the expected error message:
```matlab
>> a = arrow.array([1 2 3]);
>> arrow.internal.proxy.validate(a.Proxy, "WrongProxyName")
Proxy class name is arrow.array.proxy.Float64Array, but expected
WrongProxyName
```
### Component(s)
MATLAB
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]