# File lib/nanoc3/cli/base.rb, line 112
    def resolution_for(error)
      # FIXME this should probably go somewhere else so that 3rd-party code can add other gem names too
      gem_names = {
        'adsf'           => 'adsf',
        'bluecloth'      => 'bluecloth',
        'builder'        => 'builder',
        'coderay'        => 'coderay',
        'cri'            => 'cri',
        'erubis'         => 'erubis',
        'haml'           => 'haml',
        'json'           => 'json',
        'less'           => 'less',
        'markaby'        => 'markaby',
        'maruku'         => 'maruku',
        'mime/types'     => 'mime-types',
        'rack'           => 'rack',
        'rack/cache'     => 'rack-cache',
        'rainpress'      => 'rainpress',
        'rdiscount'      => 'rdiscount',
        'redcloth'       => 'redcloth',
        'rubypants'      => 'rubypants',
        'sass'           => 'sass',
        'w3c_validators' => 'w3c_validators'
      }

      case error
      when LoadError
        # Get gem name
        lib_name = error.message.match(/no such file to load -- ([^\s]+)/)[1]
        gem_name = gem_names[$1]

        # Build message
        if gem_name
          "Try installing the '#{gem_name}' gem (`gem install #{gem_name}`) and then re-running the command."
        end
      end
    end