Skip to content

Commit

Permalink
test: adding response data to error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
gensart-ai committed Feb 28, 2024
1 parent 00ffdc8 commit 64b7ca2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/external/image-to-sticker-meme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ const imageToStickerText: Executor = async (client, message) => {
} catch (error) {
const contact = await message.getContact();
const err = error as AxiosError;
logger.logError('imageToStickerText - ' + err.message + ' by ' + contact?.pushname ?? 'unknown');
logger.logError('imageToStickerText - ' + err.response?.data ?? err.message + ' by ' + contact?.pushname ?? 'unknown');

wweb.replyMessage(message, `${config.botShortName} gagal memproses gambar yang anda tujukan, mohon coba lagi dengan mengirim gambar baru.`)
}
Expand Down

0 comments on commit 64b7ca2

Please sign in to comment.