From 62709d358880d651633591f88e9c0863e0e247f8 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 15 Apr 2022 13:20:59 +0100 Subject: [PATCH] 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 --- src/error.rs | 2 ++ 1 file changed, 2 insertions(+) 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)] -- 2.30.2