serverless_hub 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/serverless_hub/handler.rb +7 -0
- data/lib/serverless_hub/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d42fd187411a211b9e9b97e2afd18c59c96fd8ce97611b2caffa993d68a3093
|
4
|
+
data.tar.gz: 0f9a475dea325a815ed38bd5e13c61204347b832d59a722416b7f8f8a9d1e40a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9aa917bead2179f56553f39035923817ec85d257a2871a54a2acfa6115ee2e9ebfffb1a8c93e0bb925a725eea5d6f69d5adb19aa946e9af5b273f2b8ebe157d
|
7
|
+
data.tar.gz: 926cbb517463e7a7381dc99cbf8c196c38f50cf8413eb0038ba99bcbeeed7378c8ff9f1b53566f9dcf8450cd1e3548a99857d0b6e8586005f39088dad80a6e8a
|
@@ -14,6 +14,13 @@ module ServerlessHub
|
|
14
14
|
return "Warm Up" if event["source"] == "serverless-plugin-warmup"
|
15
15
|
|
16
16
|
Lamby.handler $app, event, context
|
17
|
+
rescue Exception => msg
|
18
|
+
p "errors: #{msg}"
|
19
|
+
response = {
|
20
|
+
"statusCode" => 500,
|
21
|
+
"body" => msg,
|
22
|
+
}
|
23
|
+
end
|
17
24
|
end
|
18
25
|
end
|
19
26
|
end
|