lib/berkshelf/errors.rb in berkshelf-0.6.0.beta4 vs lib/berkshelf/errors.rb in berkshelf-1.0.0.rc1
- old
+ new
@@ -39,11 +39,11 @@
class DuplicateSourceDefined < BerkshelfError; status_code(105); end
class NoSolution < BerkshelfError; status_code(106); end
class CookbookSyntaxError < BerkshelfError; status_code(107); end
class UploadFailure < BerkshelfError; status_code(108); end
- class KnifeConfigNotFound < BerkshelfError; status_code(109); end
+ class BerksConfigNotFound < BerkshelfError; status_code(109); end
class InvalidGitURI < BerkshelfError
status_code(110)
attr_reader :uri
@@ -89,15 +89,18 @@
end
def to_s
strings = ["Invalid configuration:"]
- @errors.messages.each do |key, errors|
+ @errors.each do |key, errors|
errors.each do |error|
strings << " #{key} #{error}"
end
end
strings.join "\n"
end
end
+
+ class ConfigExists < BerkshelfError; status_code(116); end
+ class ConfigurationError < BerkshelfError; status_code(117); end
end