Skip to content

Commit

Permalink
Check response nil
Browse files Browse the repository at this point in the history
  • Loading branch information
koriym committed Mar 25, 2024
1 parent 9f46988 commit e9971dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/rb_client/resource_invoke.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ def call(method, uri)

begin
response = @client.invokeRequest(request)
if response.nil?
puts "Error: invokeRequest returned nil"
return
end
rescue => e
puts "Error: #{e.message}"
puts "Backtrace: #{e.backtrace.join("\n")}"
Expand Down

0 comments on commit e9971dc

Please sign in to comment.