From ae27aabbef834ea192833bf48a0d80b1b0bebf7a Mon Sep 17 00:00:00 2001 From: cutestnekoaqua Date: Thu, 15 Dec 2022 16:40:13 +0100 Subject: [PATCH] change error msg [CI SKIP] --- packages/backend/src/server/api/endpoints/i/move.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/backend/src/server/api/endpoints/i/move.ts b/packages/backend/src/server/api/endpoints/i/move.ts index 5a26d3e3c0..94b2271281 100644 --- a/packages/backend/src/server/api/endpoints/i/move.ts +++ b/packages/backend/src/server/api/endpoints/i/move.ts @@ -57,6 +57,11 @@ export const meta = { code: "URI_NULL", id: "bf326f31-d430-4f97-9933-5d61e4d48a23", }, + localUriNull: { + message: "Local User ActivityPup URI is null.", + code: "URI_NULL", + id: "95ba11b9-90e8-43a5-ba16-7acc1ab32e71", + }, }, } as const; @@ -101,7 +106,7 @@ export default define(meta, paramDef, async (ps, user) => { }); let fromUrl: string | null = user.uri; if(!fromUrl) { - throw new ApiError(meta.errors.uriNull); + throw new ApiError(meta.errors.localUriNull); } let toUrl: string | null = moveTo.uri;