We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a674903 + 17b649f commit 75c8513Copy full SHA for 75c8513
src/results/mod.rs
@@ -256,15 +256,16 @@ impl ::std::str::FromStr for FailureReason {
256
}
257
Ok(FailureReason::DependsOn(krates))
258
259
- _ => bail!("unexpected value"),
+ _ => bail!("unexpected prefix: {}", prefix),
260
261
} else {
262
match s {
263
+ "network-access" => Ok(FailureReason::NetworkAccess),
264
"unknown" => Ok(FailureReason::Unknown),
265
"oom" => Ok(FailureReason::OOM),
266
"timeout" => Ok(FailureReason::Timeout),
267
"ice" => Ok(FailureReason::ICE),
268
+ _ => bail!("unexpected value: {}", s),
269
270
271
0 commit comments