From ac8191cb08d606db95af039c82e40d750cd52771 Mon Sep 17 00:00:00 2001 From: Namekuji <11836635+nmkj-io@users.noreply.github.com> Date: Fri, 21 Apr 2023 09:19:15 -0400 Subject: [PATCH] rename error code --- packages/backend/src/server/api/endpoints/i/move.ts | 2 +- packages/backend/test/e2e/move.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/backend/src/server/api/endpoints/i/move.ts b/packages/backend/src/server/api/endpoints/i/move.ts index e0a9c5f9ae..0377f6c5b9 100644 --- a/packages/backend/src/server/api/endpoints/i/move.ts +++ b/packages/backend/src/server/api/endpoints/i/move.ts @@ -30,7 +30,7 @@ export const meta = { destinationAccountForbids: { message: 'Destination account doesn\'t have proper \'Known As\' alias, or has already moved.', - code: 'REMOTE_ACCOUNT_FORBIDS', + code: 'DESTINATION_ACCOUNT_FORBIDS', id: 'b5c90186-4ab0-49c8-9bba-a1f766282ba4', }, rootForbidden: { diff --git a/packages/backend/test/e2e/move.ts b/packages/backend/test/e2e/move.ts index 3dd0303fb8..3692330d5b 100644 --- a/packages/backend/test/e2e/move.ts +++ b/packages/backend/test/e2e/move.ts @@ -251,7 +251,7 @@ describe('Account Move', () => { }, alice); assert.strictEqual(res.status, 400); - assert.strictEqual(res.body.error.code, 'REMOTE_ACCOUNT_FORBIDS'); + assert.strictEqual(res.body.error.code, 'DESTINATION_ACCOUNT_FORBIDS'); assert.strictEqual(res.body.error.id, 'b5c90186-4ab0-49c8-9bba-a1f766282ba4'); }); @@ -310,7 +310,7 @@ describe('Account Move', () => { }, bob); assert.strictEqual(res.status, 400); - assert.strictEqual(res.body.error.code, 'REMOTE_ACCOUNT_FORBIDS'); + assert.strictEqual(res.body.error.code, 'DESTINATION_ACCOUNT_FORBIDS'); assert.strictEqual(res.body.error.id, 'b5c90186-4ab0-49c8-9bba-a1f766282ba4'); });