change error msg [CI SKIP]

This commit is contained in:
cutestnekoaqua 2022-12-15 16:40:13 +01:00
parent af61a1243e
commit ae27aabbef
No known key found for this signature in database
GPG Key ID: 6BF0964A5069C1E0
1 changed files with 6 additions and 1 deletions

View File

@ -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;