hyperhive/hive-c0re
Repository files (latest commit first)
Filename Latest commit message Latest commit date
iris dbd4b7a15c fix(schedules): use typed error for pause/resume 404 discrimination
Replace brittle msg.contains("not found") string matching in
post_schedule_pause / post_schedule_resume with a typed
ScheduleNotFoundOrCancelled error that handlers downcast on directly.

pause() and resume() now return Err(ScheduleNotFoundOrCancelled(id).into())
instead of bail!("schedule {id} not found or is cancelled"); handlers call
e.downcast_ref::<ScheduleNotFoundOrCancelled>().is_some() for the 404 branch,
making the discrimination stable even if the error message wording changes.
2026-06-27 20:01:16 +02:00
..
src fix(schedules): use typed error for pause/resume 404 discrimination 2026-06-27 20:01:16 +02:00
Cargo.toml use the problem_details crate for problem+json responses 2026-06-22 16:04:22 +02:00