From 932e06ad9145401af3728f80a98c032d66f4bacb Mon Sep 17 00:00:00 2001 From: projectmoon Date: Wed, 3 Feb 2021 23:26:41 +0000 Subject: [PATCH] Fix database error name. Improve dice number conversion error message. --- src/error.rs | 2 +- src/parser.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/error.rs b/src/error.rs index 2f31943..a2f5540 100644 --- a/src/error.rs +++ b/src/error.rs @@ -68,7 +68,7 @@ pub enum BotError { VariablesNotSupported, #[error("database error")] - DatabaseErrror(#[from] sled::Error), + DatabaseError(#[from] sled::Error), #[error("too many commands or message was too large")] MessageTooLarge, diff --git a/src/parser.rs b/src/parser.rs index 99e860b..14a7e5f 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -19,7 +19,7 @@ pub enum DiceParsingError { #[error("{0}")] InternalParseError(#[from] combine::error::StringStreamError), - #[error("number conversion error")] + #[error("number parsing error (too large?)")] ConversionError, }