mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 07:41:23 +01:00
fix utils/error events
This commit is contained in:
parent
5a376ceb0a
commit
7392880bf8
1 changed files with 2 additions and 2 deletions
|
|
@ -86,12 +86,12 @@ pub(crate) enum Error {
|
|||
|
||||
impl Error {
|
||||
pub(crate) fn bad_database(message: &'static str) -> Self {
|
||||
error!("BadDatabase: {}", message);
|
||||
error!(message, "Bad database");
|
||||
Self::BadDatabase(message)
|
||||
}
|
||||
|
||||
pub(crate) fn bad_config(message: &'static str) -> Self {
|
||||
error!("BadConfig: {}", message);
|
||||
error!(message, "Bad config");
|
||||
Self::BadConfig(message)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue