From: Ian Jackson Date: Fri, 15 Apr 2022 12:20:59 +0000 (+0100) Subject: Provide InternalError::FutureInstantOutOfRange X-Git-Tag: otter-1.1.0~569 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=62709d358880d651633591f88e9c0863e0e247f8;p=otter.git Provide InternalError::FutureInstantOutOfRange The dice itself wants to sometimes do this conversion (notably, on initial piece load), and if it's out of range that's implausible. Signed-off-by: Ian Jackson --- diff --git a/src/error.rs b/src/error.rs index 1d34c9b7..c133a2b3 100644 --- a/src/error.rs +++ b/src/error.rs @@ -56,6 +56,8 @@ pub enum InternalError { SshKeysManipError(#[from] sshkeys::AuthKeysManipError), #[error("Template rendering error")] TemplateRenderingError(#[from] tera::Error), + #[error("{0}")] + FutureInstantOutOfRange(#[from] FutureInstantOutOfRange), } #[derive(Error,Copy,Clone,Debug,Serialize,Deserialize)]