Skip to content

Commit 16c0a80

Browse files
author
ricael
committed
add stringify
1 parent 79438c9 commit 16c0a80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/services/template.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export class TemplateService {
103103
return result.data;
104104
}
105105
} catch (e) {
106-
this.logger.error('WhatsApp API request error: ' + (e.response?.data || e.message));
106+
this.logger.error('WhatsApp API request error: ' + ( e.response?.data ? JSON.stringify(e.response?.data) : e.message));
107107

108108
// Return the complete error response from WhatsApp API
109109
if (e.response?.data) {

0 commit comments

Comments
 (0)