Skip to content

Commit 3bd4671

Browse files
Mytrillfhinkel
authored andcommitted
Update error logging example (#930)
1 parent 118e7bb commit 3bd4671

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

functions/helloworld/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ exports.helloError = (event, callback) => {
147147
// [START functions_helloworld_error]
148148
// These WILL be reported to Stackdriver Error Reporting
149149
console.error(new Error('I failed you'));
150+
console.error('I failed you', new Error('I failed you too'));
150151
throw new Error('I failed you'); // Will cause a cold start if not caught
151152

152153
// [END functions_helloworld_error]

0 commit comments

Comments
 (0)