forked from projectmoon/tenebrous-dicebot
Fix database error name. Improve dice number conversion error message.
This commit is contained in:
parent
b7ccd4e7ad
commit
932e06ad91
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue