mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-08-28 18:26:12 -06:00
Fix error json
This commit is contained in:
parent
7df26eaa25
commit
e430d9e3e1
@ -425,7 +425,7 @@ export class BaileysStartupService extends ChannelStartupService {
|
||||
|
||||
this.logger.log(`Connection state changed to: ${connection}, instance: ${this.instance.id}`);
|
||||
if (lastDisconnect?.error) {
|
||||
this.logger.warn(`Connection error:`, lastDisconnect.error);
|
||||
this.logger.warn(`Connection error: ${JSON.stringify(lastDisconnect.error)}`);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1997,7 +1997,7 @@ export class BaileysStartupService extends ChannelStartupService {
|
||||
this.logger.log(`Message sent successfully with ID: ${result.key.id}`);
|
||||
return result;
|
||||
} catch (error) {
|
||||
this.logger.error(`Failed to send message to ${sender}:`, error);
|
||||
this.logger.error(`Failed to send message to ${sender}: ${error.message || JSON.stringify(error)}`);
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user