lib/unsplash/photo.rb in unsplash-1.5.5 vs lib/unsplash/photo.rb in unsplash-1.5.6
- old
+ new
@@ -126,10 +126,10 @@
# Upload a photo on behalf of the current user.
# @param filepath [String] The local path of the image file to upload.
# @return [Unsplash::Photo] The uploaded photo.
# <b>DEPRECATED</b>
def create(filepath)
- raise Unsplash::Error.new "API photo-upload endpoint has been deprecated and removed."
+ raise Unsplash::DeprecationError.new "API photo-upload endpoint has been deprecated and removed."
end
private
def parse_list(json)