mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-14 04:37:00 +00:00
fix: Panic when trying to check an unknown UIAA stage type
This commit is contained in:
1 file changed
+6
-4
@@ -584,10 +584,12 @@ impl Service {
|
||||
}
|
||||
},
|
||||
| AuthData::Terms(_) => Ok(AuthType::Terms),
|
||||
| _ => Err(StandardErrorBody::new(
|
||||
ErrorKind::Unrecognized,
|
||||
"Unsupported stage type".into(),
|
||||
)),
|
||||
| unknown => {
|
||||
// We already checked that the stage type is one that exists in the flow,
|
||||
// so we can only get here if we ourselves served a flow with a stage that we
|
||||
// don't understand.
|
||||
panic!("tried to check an unsupported stage type: {unknown:?}");
|
||||
},
|
||||
},
|
||||
}?;
|
||||
|
||||
|
||||
Reference in new issue
Block a user