Skip to content

Commit 2e0b159

Browse files
committed
Report errors generated by packagecloud API put_package and exit on failure.
Signed-off-by: Brett Randall <[email protected]>
1 parent 8f90f59 commit 2e0b159

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

script/packagecloud.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,10 @@ def distro_names_for(filename)
6767
end
6868

6969
puts "pushing #{full_path} to #{$distro_id_map.key(distro_id).inspect}"
70-
$client.put_package("git-lfs", pkg, distro_id)
70+
result = $client.put_package("git-lfs", pkg, distro_id)
71+
result.succeeded || begin
72+
raise "packagecloud put_package failed, error: #{result.response}"
73+
end
7174
end
7275
end
7376

0 commit comments

Comments
 (0)