Fixed slice index out of bounds error from fix-logs

This commit is contained in:
Travis Reeder
2017-06-21 08:24:06 -07:00
parent 6159deb22d
commit 47d78c3307
9 changed files with 38 additions and 101 deletions

13
examples/error/func.rb Normal file
View 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!"