class Teaspoon::UnknownFramework

loading / configuration errors

Public Class Methods

new(msg_or_options) click to toggle source
Calls superclass method
# File lib/teaspoon/exceptions.rb, line 28
def initialize(msg_or_options)
  super(build_message(msg_or_options) do |options|
    msg = "Unknown framework: expected \"#{options[:name]}\" to be a registered framework. Available frameworks are #{options[:available]}."
    if options[:available].blank?
      msg + " Do you need to update your Gemfile to use the teaspoon-#{options[:name]} gem? If you are upgrading, please see https://github.com/jejacks0n/teaspoon/blob/master/CHANGELOG.md"
    end
  end)
end