mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-07-17 17:51:11 +00:00
Merge branch 'multi-db-dockers' of https://github.com/BlackDex/vaultwarden into BlackDex-multi-db-dockers
This commit is contained in:
commit
e501dc6d0e
22 changed files with 830 additions and 433 deletions
|
@ -119,11 +119,13 @@ impl Error {
|
|||
Empty {}.into()
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn with_msg<M: Into<String>>(mut self, msg: M) -> Self {
|
||||
self.message = msg.into();
|
||||
self
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub const fn with_code(mut self, code: u16) -> Self {
|
||||
self.error_code = code;
|
||||
self
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue