lib/faastruby/server/runner.rb in faastruby-0.5.3 vs lib/faastruby/server/runner.rb in faastruby-0.5.4
- old
+ new
@@ -62,10 +62,10 @@
Dir.chdir(@function_folder)
begin
function = load_function("#{@function_folder}/handler.rb")
function_object.extend(function)
response = function_object.handler(event, *args)
- raise FaaStRuby::Response::InvalidResponseError unless response.is_a?(FaaStRuby::Response)
+ raise FaaStRuby::InvalidResponseError unless response.is_a?(FaaStRuby::Response)
rescue Exception => e
error = Oj.dump({
'error' => e.message,
'location' => e.backtrace&.first
})
\ No newline at end of file