File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -855,7 +855,7 @@ describe "install" do
855
855
with_shard(metadata) do
856
856
ex = expect_raises(FailedCommand ) { run " shards install --no-color" }
857
857
ex.stdout.should contain <<-ERROR
858
- E: Could not find executable "nonexistent"
858
+ E: Could not find executable "nonexistent" for "executable_missing"
859
859
ERROR
860
860
end
861
861
end
Original file line number Diff line number Diff line change @@ -176,12 +176,12 @@ end
176
176
begin
177
177
Shards .run
178
178
rescue ex : OptionParser ::InvalidOption
179
- Shards ::Log .fatal { ex.message }
179
+ Shards ::Log .fatal( exception: ex) { ex.message }
180
180
exit 1
181
181
rescue ex : Shards ::ParseError
182
182
ex.to_s(STDERR )
183
183
exit 1
184
184
rescue ex : Shards ::Error
185
- Shards ::Log .error { ex.message }
185
+ Shards ::Log .error( exception: ex) { ex.message }
186
186
exit 1
187
187
end
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ module Shards
114
114
spec.executables.each do |name |
115
115
exe_name = find_executable_file(Path [install_path], name)
116
116
unless exe_name
117
- raise Shards ::Error .new(" Could not find executable #{ name.inspect } " )
117
+ raise Shards ::Error .new(" Could not find executable #{ name.inspect } for #{ @name .inspect } " )
118
118
end
119
119
Log .debug { " Install #{ exe_name } " }
120
120
source = File .join(install_path, exe_name)
You can’t perform that action at this time.
0 commit comments