Skip to content

Commit 84433df

Browse files
authored
Fixes logging of unhandled exceptions in callable functions. (#759)
1 parent d1432c5 commit 84433df

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
- Updates `firebase-admin` dependency to support `^9.0.0` in addition to `^8.0.0`. Note that `firebase-admin` no longer supports Node.js 8.x as of `9.0.0`.
2+
- Fixes logging of unexpected errors in `https.onCall()` functions.

src/providers/https.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ export function _onCallWithOptions(
469469
} catch (err) {
470470
if (!(err instanceof HttpsError)) {
471471
// This doesn't count as an 'explicit' error.
472-
error('Unhandled error', error);
472+
error('Unhandled error', err);
473473
err = new HttpsError('internal', 'INTERNAL');
474474
}
475475

0 commit comments

Comments
 (0)