lib/berkshelf/errors.rb in berkshelf-7.1.0 vs lib/berkshelf/errors.rb in berkshelf-7.2.0
- old
+ new
@@ -89,10 +89,11 @@
alias_method :message, :to_s
end
class CookbookSyntaxError < BerkshelfError; set_status_code(107); end
class ConstraintNotSatisfied < BerkshelfError; set_status_code(111); end
+
class BerksfileReadError < BerkshelfError
set_status_code(113)
# @param [#set_status_code] original_error
def initialize(original_error)
@@ -252,10 +253,11 @@
alias_method :message, :to_s
end
class UploadFailure < BerkshelfError; end
+
class FrozenCookbook < UploadFailure
set_status_code(126)
# @param [CachedCookbook] cookbook
def initialize(cookbook)
@@ -434,9 +436,10 @@
alias_method :message, :to_s
end
class DuplicateDemand < BerkshelfError; set_status_code(138); end
+
class LockfileNotFound < BerkshelfError
set_status_code(140)
def to_s
"Lockfile not found! Run `berks install` to create the lockfile."