fix: Panic when trying to check an unknown UIAA stage type

This commit is contained in:
Ginger committed 2026-06-16 12:50:43 -04:00
1 parent 1442cfcb4f
commit 37f26dc430
1 file changed
+6 -4
+6 -4
View File
@@ -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:?}");
},
},
}?;