mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-23 07:33:12 +09:00
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:
1 parent
afc1d35668
commit
389004d652
8 files changed
+32
-32
No files matched your search
@@ -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}`);
|
||||
|
||||
Reference in new issue
Block a user