File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -406,13 +406,7 @@ export class StateMachine implements RestateStreamConsumer {
406
406
return ;
407
407
}
408
408
409
- const error = ensureError ( e ) ;
410
- this . console . trace (
411
- "Function completed with an error: " + error . message ,
412
- e
413
- ) ;
414
-
415
- this . sendErrorAndFinish ( error ) ;
409
+ this . sendErrorAndFinish ( ensureError ( e ) ) ;
416
410
} catch ( ee ) {
417
411
this . unhandledError ( ensureError ( ee ) ) ;
418
412
}
@@ -424,6 +418,7 @@ export class StateMachine implements RestateStreamConsumer {
424
418
}
425
419
426
420
public async sendErrorAndFinish ( e : Error , ctx ?: JournalErrorContext ) {
421
+ this . console . warn ( "Function completed with an error.\n" , e ) ;
427
422
if ( e instanceof TerminalError ) {
428
423
this . sendTerminalError ( e ) ;
429
424
} else {
You can’t perform that action at this time.
0 commit comments