Fix database error name. Improve dice number conversion error message.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
projectmoon 2021-02-03 23:26:41 +00:00
parent b7ccd4e7ad
commit 932e06ad91
2 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ pub enum BotError {
VariablesNotSupported, VariablesNotSupported,
#[error("database error")] #[error("database error")]
DatabaseErrror(#[from] sled::Error), DatabaseError(#[from] sled::Error),
#[error("too many commands or message was too large")] #[error("too many commands or message was too large")]
MessageTooLarge, MessageTooLarge,

View File

@ -19,7 +19,7 @@ pub enum DiceParsingError {
#[error("{0}")] #[error("{0}")]
InternalParseError(#[from] combine::error::StringStreamError), InternalParseError(#[from] combine::error::StringStreamError),
#[error("number conversion error")] #[error("number parsing error (too large?)")]
ConversionError, ConversionError,
} }