enhance(frontend): 照会の際にエラーを表示するように (#15147)

* enhance: 照会の失敗理由を表示するように

* Update Changelog

* fix

* fix test

* lookupErrors-> remoteLookupErrors
This commit is contained in:
かっこかり
2024-12-19 16:05:33 +09:00
committed by GitHub
parent 0804092426
commit f123be38b9
7 changed files with 193 additions and 20 deletions

View File

@@ -131,11 +131,7 @@ describe('Note', () => {
rejects(
async () => await bob.client.request('ap/show', { uri: `https://a.test/notes/${note.id}` }),
(err: any) => {
/**
* FIXME: this error is not handled
* @see https://github.com/misskey-dev/misskey/issues/12736
*/
strictEqual(err.code, 'INTERNAL_ERROR');
strictEqual(err.code, 'REQUEST_FAILED');
return true;
},
);