From a84fdb1d375aa0478cae0a452a8b1aa002deef07 Mon Sep 17 00:00:00 2001 From: Jack Wright <56345+ayax79@users.noreply.github.com> Date: Tue, 4 Jun 2024 16:40:02 -0700 Subject: [PATCH] Fixed a couple of incorrect errors messages (#13043) Fixed a couple of error message that incorrectly reported as parquet errors instead of CSV errors. --- crates/nu_plugin_polars/src/dataframe/eager/open.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/nu_plugin_polars/src/dataframe/eager/open.rs b/crates/nu_plugin_polars/src/dataframe/eager/open.rs index da9352b2d3..81ea537574 100644 --- a/crates/nu_plugin_polars/src/dataframe/eager/open.rs +++ b/crates/nu_plugin_polars/src/dataframe/eager/open.rs @@ -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,