mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Fixed slice index out of bounds error from fix-logs
This commit is contained in:
13
examples/error/func.rb
Normal file
13
examples/error/func.rb
Normal file
@@ -0,0 +1,13 @@
|
||||
require 'json'
|
||||
|
||||
payload = STDIN.read
|
||||
if payload != ""
|
||||
payload = JSON.parse(payload)
|
||||
|
||||
# payload contains checks
|
||||
if payload["input"]
|
||||
puts payload["input"]
|
||||
end
|
||||
end
|
||||
|
||||
raise "Something went terribly wrong!"
|
||||
Reference in New Issue
Block a user