1
0
Fork 1
mirror of https://example.com synced 2024-11-24 07:16:38 +09:00

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

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;