mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-14 18:33:09 +02: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);
|
const data = await client.uploadMedia(multipartData);
|
||||||
reply.send(convertAttachment(data.data as Entity.Attachment));
|
reply.send(convertAttachment(data.data as Entity.Attachment));
|
||||||
} catch (e: any) {
|
} catch (e: any) {
|
||||||
/* console.error(e); */
|
console.error(e);
|
||||||
reply.code(401).send(e.response.data);
|
reply.code(401).send(e.response.data);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -158,10 +158,11 @@ export class MastodonApiServerService {
|
||||||
reply.code(401).send({ error: 'No image' });
|
reply.code(401).send({ error: 'No image' });
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
console.error(_request.body);
|
||||||
const data = await client.uploadMedia(multipartData, _request.body!);
|
const data = await client.uploadMedia(multipartData, _request.body!);
|
||||||
reply.send(convertAttachment(data.data as Entity.Attachment));
|
reply.send(convertAttachment(data.data as Entity.Attachment));
|
||||||
} catch (e: any) {
|
} catch (e: any) {
|
||||||
/* console.error(e); */
|
console.error(e);
|
||||||
reply.code(401).send(e.response.data);
|
reply.code(401).send(e.response.data);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue