Skip to content

Commit 75c8513

Browse files
committed
Auto merge of #625 - Mark-Simulacrum:opt, r=Mark-Simulacrum
Fix deserializing network-access failure reason I think this is long-standing bug but exacerbated by #624.
2 parents a674903 + 17b649f commit 75c8513

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/results/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,15 +256,16 @@ impl ::std::str::FromStr for FailureReason {
256256
}
257257
Ok(FailureReason::DependsOn(krates))
258258
}
259-
_ => bail!("unexpected value"),
259+
_ => bail!("unexpected prefix: {}", prefix),
260260
}
261261
} else {
262262
match s {
263+
"network-access" => Ok(FailureReason::NetworkAccess),
263264
"unknown" => Ok(FailureReason::Unknown),
264265
"oom" => Ok(FailureReason::OOM),
265266
"timeout" => Ok(FailureReason::Timeout),
266267
"ice" => Ok(FailureReason::ICE),
267-
_ => bail!("unexpected value"),
268+
_ => bail!("unexpected value: {}", s),
268269
}
269270
}
270271
}

0 commit comments

Comments
 (0)