@@ -229,7 +229,7 @@ export async function errorSetupForNodeJs() {
229229 timestamp : new Date ( ) . toISOString ( ) ,
230230 level : "error" ,
231231 label : "UnhandledRejection" ,
232- message : `Unhandled Rejection at: ${ promise } , reason: ${ reason instanceof Error ? reason . message : String ( reason ) } ` ,
232+ message : `Unhandled Rejection at: ${ promise } , reason: ${ reason } ` ,
233233 botType : Config . BotType . toString ( ) || "Unknown" ,
234234 action : LoggingAction . Other ,
235235 } ) ;
@@ -241,7 +241,7 @@ export async function errorSetupForNodeJs() {
241241 timestamp : new Date ( ) . toISOString ( ) ,
242242 level : "error" ,
243243 label : "UncaughtException" ,
244- message : `Uncaught Exception: \n${ err instanceof Error ? err . message : String ( err ) } ` ,
244+ message : `Uncaught Exception: \n${ err } ` ,
245245 botType : Config . BotType . toString ( ) || "Unknown" ,
246246 action : LoggingAction . Other ,
247247 } ) ;
@@ -253,7 +253,7 @@ export async function errorSetupForNodeJs() {
253253 timestamp : new Date ( ) . toISOString ( ) ,
254254 level : "error" ,
255255 label : "AggregateError" ,
256- message : `AggregateError: \n${ error . message } ` ,
256+ message : `AggregateError: \n${ error } ` ,
257257 botType : Config . BotType . toString ( ) || "Unknown" ,
258258 action : LoggingAction . Other ,
259259 } ) ;
@@ -265,7 +265,7 @@ export async function errorSetupForNodeJs() {
265265 timestamp : new Date ( ) . toISOString ( ) ,
266266 level : "error" ,
267267 label : "UncaughtExceptionMonitor" ,
268- message : `Uncaught Exception Monitor: \n${ err instanceof Error ? err . message : String ( err ) } \nOrigin: ${ origin } ` ,
268+ message : `Uncaught Exception Monitor: \n${ err } \nOrigin: ${ origin } ` ,
269269 botType : Config . BotType . toString ( ) || "Unknown" ,
270270 action : LoggingAction . Other ,
271271 } ) ;
0 commit comments