Skip to content

Commit

Permalink
Display error when S3 upload fails
Browse files Browse the repository at this point in the history
  • Loading branch information
BanzaiMan committed Jul 28, 2016
1 parent a5edc90 commit c4e259d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/dpl/provider/s3.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ def push_app
opts[:expires] = get_option_value_by_filename(options[:expires], filename) if options[:expires]
unless File.directory?(filename)
log "uploading #{filename.inspect} with #{opts.inspect}"
api.bucket(option(:bucket)).object(upload_path(filename)).upload_file(filename, opts)
result = api.bucket(option(:bucket)).object(upload_path(filename)).upload_file(filename, opts)
warn "error while uploading #{filename.inspect}" unless result
end
end
end
Expand Down

0 comments on commit c4e259d

Please sign in to comment.