chiark / gitweb /
Provide InternalError::FutureInstantOutOfRange
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 15 Apr 2022 12:20:59 +0000 (13:20 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 15 Apr 2022 21:43:43 +0000 (22:43 +0100)
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 <ijackson@chiark.greenend.org.uk>
src/error.rs

index 1d34c9b7809cad60cad401fd6783210343600fc0..c133a2b3c1154faceaf0546a44348de24d65ddda 100644 (file)
@@ -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)]