Skip to content

Commit 10096cc

Browse files
committed
fix(datasets): restore eprintln for "Dataset updated" status line
Reverts fb8af95. The suggestion changed eprintln! to println!, which puts the human prelude on stdout and breaks `-o json` / `-o yaml` piping (e.g. `... -o json | jq` fails with a parse error because the status line precedes the JSON).
1 parent fb8af95 commit 10096cc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/datasets.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ pub fn update(
524524
let d: UpdateResponse = api.put(&format!("/datasets/{dataset_id}"), &body);
525525

526526
use crossterm::style::Stylize;
527-
println!("{}", "Dataset updated".green());
527+
eprintln!("{}", "Dataset updated".green());
528528
match format {
529529
"json" => println!("{}", serde_json::to_string_pretty(&d).unwrap()),
530530
"yaml" => print!("{}", serde_yaml::to_string(&d).unwrap()),

0 commit comments

Comments
 (0)