mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-22 14:05:12 +00:00
test: enable error logs for media
This commit is contained in:
parent
35f3f9e078
commit
2bda4f1768
1 changed files with 3 additions and 2 deletions
|
@ -143,7 +143,7 @@ export class MastodonApiServerService {
|
|||
const data = await client.uploadMedia(multipartData);
|
||||
reply.send(convertAttachment(data.data as Entity.Attachment));
|
||||
} catch (e: any) {
|
||||
/* console.error(e); */
|
||||
console.error(e);
|
||||
reply.code(401).send(e.response.data);
|
||||
}
|
||||
});
|
||||
|
@ -158,10 +158,11 @@ export class MastodonApiServerService {
|
|||
reply.code(401).send({ error: 'No image' });
|
||||
return;
|
||||
}
|
||||
console.error(_request.body);
|
||||
const data = await client.uploadMedia(multipartData, _request.body!);
|
||||
reply.send(convertAttachment(data.data as Entity.Attachment));
|
||||
} catch (e: any) {
|
||||
/* console.error(e); */
|
||||
console.error(e);
|
||||
reply.code(401).send(e.response.data);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue