src/server/worker_task.rs_ do not write ERROR: prefix into task index

This commit is contained in:
Dietmar Maurer 2019-04-15 08:37:13 +02:00
parent 418def7a78
commit 1be71fb02b
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ pub fn upid_read_status(upid: &UPID) -> Result<String, Error> {
if rest == "OK" { if rest == "OK" {
status = String::from(rest); status = String::from(rest);
} else if rest.starts_with("ERROR: ") { } else if rest.starts_with("ERROR: ") {
status = String::from(rest); status = String::from(&rest[7..]);
} }
} }
} }