aboutsummaryrefslogtreecommitdiff
path: root/examples/lambda.ts
diff options
context:
space:
mode:
Diffstat (limited to 'examples/lambda.ts')
-rw-r--r--examples/lambda.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/lambda.ts b/examples/lambda.ts
index 66746ecad..ec4817817 100644
--- a/examples/lambda.ts
+++ b/examples/lambda.ts
@@ -9,6 +9,9 @@ const sourceDir = LAMBDA_TASK_ROOT;
if (!sourceDir) {
throw new Error("handler is not set");
}
+if (!_HANDLER) {
+ throw new Error("handler is not set");
+}
// don't care if this fails
if (process.cwd() !== sourceDir) {