Skip to content

Commit

Permalink
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 9f46988 commit 41c1b49
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions client/rb_client/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ GEM

PLATFORMS
arm64-darwin-22
arm64-darwin-23

DEPENDENCIES
thrift (~> 0.19.0)
Expand Down
4 changes: 4 additions & 0 deletions client/rb_client/main.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ def main
resource_invoke = ResourceInvoke.new(hostname, port)
response = resource_invoke.call(method, uri)

if response.nil?
raise 'Error: resource_invoke.call returned nil'
end

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

0 comments on commit 41c1b49

Please sign in to comment.