src/api2/node/tasks.rs - extract_upid: avoid duplicate error message
This commit is contained in:
parent
5830c20560
commit
8560fe3e5f
|
@ -48,12 +48,7 @@ fn extract_upid(param: &Value) -> Result<UPID, Error> {
|
|||
|
||||
let upid_str = tools::required_string_param(¶m, "upid")?;
|
||||
|
||||
let upid = match upid_str.parse::<UPID>() {
|
||||
Ok(v) => v,
|
||||
Err(err) => bail!("unable to parse UPID '{}' - {}", upid_str, err),
|
||||
};
|
||||
|
||||
Ok(upid)
|
||||
upid_str.parse::<UPID>()
|
||||
}
|
||||
|
||||
fn read_task_log(
|
||||
|
|
Loading…
Reference in New Issue