Skip to content

Commit b0958c4

Browse files
committed
Show shard name in warning
1 parent 27a5aa1 commit b0958c4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spec/integration/install_spec.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ describe "install" do
384384
}
385385
with_shard(metadata) do
386386
stdout = run "shards install --no-color"
387-
stdout.should contain("W: Shard version (0.1.0) doesn't match tag version (0.2.0)")
387+
stdout.should contain("W: Shard \"version_mismatch\" version (0.1.0) doesn't match tag version (0.2.0)")
388388
assert_installed "version_mismatch"
389389
end
390390
end

src/molinillo_solver.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ module Shards
7171
raise Error.new("Error shard name (#{spec.name}) doesn't match dependency name (#{dependency.name})")
7272
end
7373
if spec.mismatched_version?
74-
Log.warn { "Shard version (#{spec.original_version}) doesn't match tag version (#{spec.version})" }
74+
Log.warn { "Shard \"#{spec.name}\" version (#{spec.original_version}) doesn't match tag version (#{spec.version})" }
7575
end
7676
end
7777
resolver = spec.resolver || raise "BUG: returned Spec has no resolver"

0 commit comments

Comments
 (0)