Skip to content

Commit

Permalink
Merge pull request #508 from MsysTechnologiesllc/VSingh/MSYS-1063-rai…
Browse files Browse the repository at this point in the history
…se-error-method-argument

Fix raise invalid arguments
  • Loading branch information
clintoncwolfe authored Aug 13, 2019
2 parents b84b626 + 416cf28 commit b924020
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/train/extras/command_wrapper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ def self.load(transport, options)
res = LinuxCommand.new(transport, options)
verification_res = res.verify
if verification_res
msg, reason = verification_res
raise Train::UserError, "Sudo failed: #{msg}", reason
msg, _reason = verification_res
raise Train::UserError, "Sudo failed: #{msg}"
end
res
elsif transport.platform.windows?
Expand Down

0 comments on commit b924020

Please sign in to comment.