fix: surface server error in get_status and trim table output
- Include error field in get_status() ApiResponse so server error messages are surfaced instead of generic 'No status data returned' - Use trim_lines_end() on table output to match local mode formatting
This commit is contained in:
@@ -33,7 +33,10 @@ pub fn mode(
|
||||
path_table.add_row(vec!["Data", &status_info.paths.data]);
|
||||
path_table.add_row(vec!["Database", &status_info.paths.database]);
|
||||
println!("PATHS:");
|
||||
println!("{path_table}");
|
||||
println!(
|
||||
"{}",
|
||||
crate::modes::common::trim_lines_end(&path_table.trim_fmt())
|
||||
);
|
||||
println!();
|
||||
|
||||
// Configured meta plugins
|
||||
@@ -56,7 +59,10 @@ pub fn mode(
|
||||
]);
|
||||
}
|
||||
println!("META PLUGINS:");
|
||||
println!("{table}");
|
||||
println!(
|
||||
"{}",
|
||||
crate::modes::common::trim_lines_end(&table.trim_fmt())
|
||||
);
|
||||
println!();
|
||||
}
|
||||
|
||||
@@ -78,7 +84,10 @@ pub fn mode(
|
||||
]);
|
||||
}
|
||||
println!("COMPRESSION:");
|
||||
println!("{table}");
|
||||
println!(
|
||||
"{}",
|
||||
crate::modes::common::trim_lines_end(&table.trim_fmt())
|
||||
);
|
||||
println!();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user