Raise NoAccountsError when all accounts limited

This commit is contained in:
Zed
2025-02-05 00:32:55 +01:00
parent 19569bb19f
commit 28d3ed7d9f
3 changed files with 10 additions and 1 deletions

View File

@@ -97,6 +97,11 @@ routes:
resp Http429, showError(
&"Instance has been rate limited.<br>Use {link} or try again later.", cfg)
error NoAccountsError:
const link = a("another instance", href = instancesUrl)
resp Http429, showError(
&"Instance has no available accounts.<br>Use {link} or try again later.", cfg)
extend rss, ""
extend status, ""
extend search, ""