Skip to content

Commit

Permalink
Improve Err() messages in nodejs-polars (#3546)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Russell <git@ryanrussell.org>
  • Loading branch information
ryanrussell committed May 31, 2022
1 parent a36c992 commit 4e21538
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions nodejs-polars/src/dataframe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ impl JsDataFrame {
.map_err(|err| napi::Error::from_reason(format!("{:?}", err)))?,
_ => {
return Err(napi::Error::from_reason(
"unexpected format. \n supportd options are 'json', 'bincode'".to_owned(),
"unexpected format. \n supported options are 'json', 'bincode'".to_owned(),
))
}
};
Expand All @@ -440,7 +440,7 @@ impl JsDataFrame {
.map_err(|err| napi::Error::from_reason(format!("{:?}", err)))?,
_ => {
return Err(napi::Error::from_reason(
"unexpected format. \n supportd options are 'json', 'bincode'".to_owned(),
"unexpected format. \n supported options are 'json', 'bincode'".to_owned(),
))
}
};
Expand Down
4 changes: 2 additions & 2 deletions nodejs-polars/src/lazy/dataframe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ impl JsLazyFrame {
.map_err(|err| napi::Error::from_reason(format!("{:?}", err)))?,
_ => {
return Err(napi::Error::from_reason(
"unexpected format. \n supportd options are 'json', 'bincode'".to_owned(),
"unexpected format. \n supported options are 'json', 'bincode'".to_owned(),
))
}
};
Expand All @@ -82,7 +82,7 @@ impl JsLazyFrame {
.map_err(|err| napi::Error::from_reason(format!("{:?}", err)))?,
_ => {
return Err(napi::Error::from_reason(
"unexpected format. \n supportd options are 'json', 'bincode'".to_owned(),
"unexpected format. \n supported options are 'json', 'bincode'".to_owned(),
))
}
};
Expand Down
4 changes: 2 additions & 2 deletions nodejs-polars/src/lazy/dsl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ impl JsExpr {
.map_err(|err| napi::Error::from_reason(format!("{:?}", err)))?,
_ => {
return Err(napi::Error::from_reason(
"unexpected format. \n supportd options are 'json', 'bincode'".to_owned(),
"unexpected format. \n supported options are 'json', 'bincode'".to_owned(),
))
}
};
Expand All @@ -83,7 +83,7 @@ impl JsExpr {
.map_err(|err| napi::Error::from_reason(format!("{:?}", err)))?,
_ => {
return Err(napi::Error::from_reason(
"unexpected format. \n supportd options are 'json', 'bincode'".to_owned(),
"unexpected format. \n supported options are 'json', 'bincode'".to_owned(),
))
}
};
Expand Down

0 comments on commit 4e21538

Please sign in to comment.