1
0
Fork 0
mirror of https://github.com/LemmyNet/lemmy.git synced 2025-04-21 10:24:06 +00:00

Fix rate limit error messages. Fixes ()

* Fix rate limit error messages. Fixes 

* Simplify
This commit is contained in:
Dessalines 2022-09-26 10:40:42 -04:00 committed by GitHub
parent 9ce15ed071
commit 3adb293541
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -498,8 +498,8 @@ impl ChatServer {
if passed {
fut.await
} else {
// if rate limit was hit, respond with empty message
Ok("".to_string())
// if rate limit was hit, respond with message
Err(LemmyError::from_message("rate_limit_error"))
}
}
}