Skip to content

Commit 2dcb838

Browse files
graysideswalkowski
authored andcommitted
Log errors after "finished functions" (#34)
* Log errors after "finished functions" * Prefix error with 'finished function' notice
1 parent f04663b commit 2dcb838

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/invoker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ function makeHttpHandler(execute: HttpFunction): express.RequestHandler {
352352
// Catch unhandled errors originating from this request.
353353
d.on('error', err => {
354354
if (res.locals.functionExecutionFinished) {
355-
console.log('Ignoring exception from a finished function');
355+
console.error(`Exception from a finished function: ${err}`);
356356
} else {
357357
res.locals.functionExecutionFinished = true;
358358
logAndSendError(err, res);

0 commit comments

Comments
 (0)