rename error
This commit is contained in:
parent
93deaff565
commit
d9c56aaf1e
1 changed files with 4 additions and 4 deletions
|
@ -89,13 +89,13 @@ pub async fn create_user(
|
||||||
if exit == 2067u32 || exit == 1555 {
|
if exit == 2067u32 || exit == 1555 {
|
||||||
Err(CreateUserErrorKind::AlreadyExists.into())
|
Err(CreateUserErrorKind::AlreadyExists.into())
|
||||||
} else {
|
} else {
|
||||||
Err(CreateUserErrorKind::Unknown.into())
|
Err(CreateUserErrorKind::UnknownDBError.into())
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Err(CreateUserErrorKind::Unknown.into())
|
Err(CreateUserErrorKind::UnknownDBError.into())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_ => Err(CreateUserErrorKind::Unknown.into()),
|
_ => Err(CreateUserErrorKind::UnknownDBError.into()),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -111,5 +111,5 @@ pub enum CreateUserErrorKind {
|
||||||
BadUsername,
|
BadUsername,
|
||||||
PasswordMismatch,
|
PasswordMismatch,
|
||||||
MissingFields,
|
MissingFields,
|
||||||
Unknown,
|
UnknownDBError,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue