Use new Errors in latest changes

This commit is contained in:
Daniel García
2018-12-24 00:27:12 +01:00
parent b2fc0499f6
commit 250a2b340f
3 changed files with 7 additions and 16 deletions

View File

@@ -87,7 +87,7 @@ fn register(data: JsonUpcase<RegisterData>, conn: DbConn) -> EmptyResult {
}
}
} else if CONFIG.signups_allowed {
err!("Account with this email already exists")
err!("Account with this email already exists")
} else {
err!("Registration not allowed")
}