Replace RequestError with the HTTP-style error classes

clusterio#999 removed RequestError. Handlers now throw NotFoundError,
ValidationError, ConflictError or UnavailableError, and exp_auto_restart
treats any ClientError from the host as a final refusal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
bbassieandClaude Opus 5.5 committed 2026-10-28 23:43:25 +00:00
1 parent afc1d35668
commit 389004d652
8 files changed
+32 -32

No files matched your search

+1 -1
View File
@@ -197,7 +197,7 @@ export class AutoRestart {
} catch (err: any) {
this.pending.delete(host.id);
// The host refusing is final for this process, anything else is retried
if (!(err instanceof lib.RequestError)) {
if (!(err instanceof lib.ClientError)) {
this.requested.delete(host.id);
}
this.logger.error(`Failed to restart host ${host.name}: ${err.message}`);