westonpace commented on code in PR #33848:
URL: https://github.com/apache/arrow/pull/33848#discussion_r1085776738


##########
cpp/src/arrow/dataset/discovery.cc:
##########
@@ -244,7 +244,7 @@ Result<std::vector<std::shared_ptr<Schema>>> 
FileSystemDatasetFactory::InspectSc
     if (ARROW_PREDICT_FALSE(!result.ok())) {
       return result.status().WithMessage(
           "Error creating dataset. Could not read schema from '", info.path(),
-          "': ", result.status().message(), ". Is this a '", 
format_->type_name(),
+          "': ", result.status().message(), " Is this a '", 
format_->type_name(),

Review Comment:
   Minor bike-shedding nit.  Should we surround the inner exception with `()`?
   
   ```
   pyarrow.lib.ArrowInvalid: Error creating dataset. Could not read schema from 
'data/flights-200k.arrow': (Could not open Parquet input source 
'data/flights-200k.arrow': Parquet magic bytes not found in footer. Either the 
file is corrupted or this is not a parquet file.) Is this a 'parquet' file?
   ```



-- 
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]

Reply via email to