summaryrefslogtreecommitdiffstats
path: root/src/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs
index 4d4a0af..d450146 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -43,6 +43,16 @@ error_chain! {
display("Argument Error: Cannot calculate end-of-month on a {:?}", tt)
}
+ CannotCompareDayTo(tt_rep: &'static str) {
+ description("Cannot compare Day to non-Moment TimeType")
+ display("Cannot compare Day to non-Moment TimeType: {:?}", tt_rep)
+ }
+
+ CannotCompareMonthTo(tt_rep: &'static str) {
+ description("Cannot compare Month to non-Moment TimeType")
+ display("Cannot compare Month to non-Moment TimeType: {:?}", tt_rep)
+ }
+
}
}