Skip to content

Commit

Permalink
Scribd's upload method outputs res variable information on exception
Browse files Browse the repository at this point in the history
  • Loading branch information
baumicon committed Nov 7, 2011
1 parent 701dc81 commit 1725de5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/scribd_fu.rb
Expand Up @@ -69,7 +69,7 @@ def upload(obj, file_path)
res = scribd_user.upload(:file => escape(file_path), :access => access_level)
obj.update_attributes({:ipaper_id => res.doc_id, :ipaper_access_key => res.access_key})
rescue
raise ScribdFuUploadError, "Sorry, but #{obj.class} ##{obj.id} could not be uploaded to Scribd"
raise ScribdFuUploadError, "Sorry, but #{obj.class} ##{obj.id} could not be uploaded to Scribd: #{res.inspect}"
end
end

Expand Down

0 comments on commit 1725de5

Please sign in to comment.