mirror of
https://example.com
synced 2024-11-24 07:16:38 +09:00
change error msg [CI SKIP]
This commit is contained in:
parent
af61a1243e
commit
ae27aabbef
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue