From 3be1975b1599c267bb409926c87c3c85f26524c3 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 5a26d3e3c..94b227128 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;