Skip to content

Commit

Permalink
fixup! fixup! Create run;all command
Browse files Browse the repository at this point in the history
  • Loading branch information
koriym committed Mar 25, 2024
1 parent 41c1b49 commit 5a23afd
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions client/rb_client/main.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,14 @@ def main
uri = ARGV[3]

resource_invoke = ResourceInvoke.new(hostname, port)
response = resource_invoke.call(method, uri)

if response.nil?
raise 'Error: resource_invoke.call returned nil'
begin
response = resource_invoke.call(method, uri)
if response.nil?
raise 'Error: resource_invoke.call returned nil'
end
rescue => e
puts "Exception occurred: #{e.message}"
puts e.backtrace
end

if response.is_a?(String) && response.start_with?("Error:")
Expand Down

0 comments on commit 5a23afd

Please sign in to comment.