mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-15 15:24:52 +09:00
Add UnavailableError and keep the PermissionError name
Host not connected, host shutting down and instance not running are now UnavailableError (503) instead of ConflictError. The request error migration notes move to a new 2.1 guide, since this ships in 2.1. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
1c7c00b033
commit
54e9340e61
23 files changed
+78
-66
No files matched your search
@@ -172,7 +172,7 @@ describe("controller/InstanceManager", function () {
|
||||
it("should throw if host not connected", async function () {
|
||||
await assert.rejects(
|
||||
() => instances.assignInstance(1, 5),
|
||||
lib.ConflictError
|
||||
lib.UnavailableError
|
||||
);
|
||||
});
|
||||
|
||||
@@ -204,7 +204,7 @@ describe("controller/InstanceManager", function () {
|
||||
|
||||
await assert.rejects(
|
||||
() => instances.assignInstance(1, 6),
|
||||
lib.ConflictError
|
||||
lib.UnavailableError
|
||||
);
|
||||
|
||||
assert.equal(unassignRequest, undefined);
|
||||
|
||||
Reference in new issue
Block a user