From acc3ca9de7e7e251566b31c77496fe1fede9a0f8 Mon Sep 17 00:00:00 2001 From: SylvanBrocard <81555313+SylvanBrocard@users.noreply.github.com> Date: Fri, 5 Apr 2024 13:47:08 +0200 Subject: [PATCH] Update list of supported formats in dfr open error message. (#12408) # Description The error message when using `dfr open --type` shows an outdated list of supported formats. # User-Facing Changes User is now informed that jsonl and avro formats are supported. # Tests + Formatting Done. # After Submitting No doc changes. --- crates/nu-cmd-dataframe/src/dataframe/eager/open.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/nu-cmd-dataframe/src/dataframe/eager/open.rs b/crates/nu-cmd-dataframe/src/dataframe/eager/open.rs index 8571e41b39..27fb5ab098 100644 --- a/crates/nu-cmd-dataframe/src/dataframe/eager/open.rs +++ b/crates/nu-cmd-dataframe/src/dataframe/eager/open.rs @@ -121,7 +121,9 @@ fn command( "jsonl" => from_jsonl(engine_state, stack, call), "avro" => from_avro(engine_state, stack, call), _ => Err(ShellError::FileNotFoundCustom { - msg: format!("{msg}. Supported values: csv, tsv, parquet, ipc, arrow, json"), + msg: format!( + "{msg}. Supported values: csv, tsv, parquet, ipc, arrow, json, jsonl, avro" + ), span: blamed, }), },