chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6567d36
)
Provide InternalError::FutureInstantOutOfRange
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 15 Apr 2022 12:20:59 +0000
(13:20 +0100)
committer
Ian 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
patch
|
blob
|
history
diff --git
a/src/error.rs
b/src/error.rs
index 1d34c9b7809cad60cad401fd6783210343600fc0..c133a2b3c1154faceaf0546a44348de24d65ddda 100644
(file)
--- 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)]