refactor: Improve error handling

This commit is contained in:
0xalivecow 2024-10-24 13:35:17 +02:00
parent 389ef14e33
commit f3e9ded953
No known key found for this signature in database
2 changed files with 18 additions and 14 deletions

View file

@ -12,7 +12,7 @@ fn main() -> Result<()> {
let json = fs::read_to_string(path_to_workload).unwrap();
let workload = kauma::utils::parse::parse_json(json)?;
let response = kauma::tasks::task_distrubute(&workload);
let response = kauma::tasks::task_distrubute(&workload)?;
println!("{}", serde_json::to_string(&response)?);
Ok(())