Skip to content

Commit

Permalink
fix(rust): Improve error message on SchemaError (#20326)
Browse files Browse the repository at this point in the history
  • Loading branch information
kszlim authored Dec 17, 2024
1 parent 2de9f16 commit 80f8945
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/polars-core/src/series/ops/downcast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use crate::series::implementations::null::NullChunked;

macro_rules! unpack_chunked_err {
($series:expr => $name:expr) => {
polars_err!(SchemaMismatch: "invalid series dtype: expected `{}`, got `{}`", $name, $series.dtype())
polars_err!(SchemaMismatch: "invalid series dtype: expected `{}`, got `{}` for series with name `{}`", $name, $series.dtype(), $series.name())
};
}

Expand Down

0 comments on commit 80f8945

Please sign in to comment.