rename error

This commit is contained in:
Joe Ardent 2023-05-16 16:24:24 -07:00
parent 93deaff565
commit d9c56aaf1e

View file

@ -89,13 +89,13 @@ pub async fn create_user(
if exit == 2067u32 || exit == 1555 {
Err(CreateUserErrorKind::AlreadyExists.into())
} else {
Err(CreateUserErrorKind::Unknown.into())
Err(CreateUserErrorKind::UnknownDBError.into())
}
} 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,
PasswordMismatch,
MissingFields,
Unknown,
UnknownDBError,
}