Fixed a couple of incorrect errors messages (#13043)

Fixed a couple of error message that incorrectly reported as parquet
errors instead of CSV errors.
This commit is contained in:
Jack Wright 2024-06-04 16:40:02 -07:00 committed by GitHub
parent ad5a6cdc00
commit a84fdb1d37
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -465,7 +465,7 @@ fn from_csv(
let df: NuLazyFrame = csv_reader
.finish()
.map_err(|e| ShellError::GenericError {
error: "Parquet reader error".into(),
error: "CSV reader error".into(),
msg: format!("{e:?}"),
span: Some(call.head),
help: None,
@ -531,7 +531,7 @@ fn from_csv(
let df: NuDataFrame = csv_reader
.finish()
.map_err(|e| ShellError::GenericError {
error: "Parquet reader error".into(),
error: "CSV reader error".into(),
msg: format!("{e:?}"),
span: Some(call.head),
help: None,