Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions functions/helloworld/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ exports.helloGCS = function helloGCS (event, callback) {
* @param {function} The callback function.
*/
exports.helloError = function helloError (event, callback) {
// This WILL be reported to Stackdriver errors
throw new Error('I failed you');
};
// [END functions_hello_error]
Expand All @@ -120,6 +121,7 @@ exports.helloError = function helloError (event, callback) {
* @param {function} The callback function.
*/
exports.helloError2 = function helloError2 (event, callback) {
// This will NOT be reported to Stackdriver errors
throw 1;
};
// [END functions_hello_error_2]
Expand All @@ -132,6 +134,7 @@ exports.helloError2 = function helloError2 (event, callback) {
* @param {function} The callback function.
*/
exports.helloError3 = function helloError3 (event, callback) {
// This will NOT be reported to Stackdriver errors
callback('I failed you');
};
// [END functions_hello_error_3]