File: missing_keys.rb

package info (click to toggle)
ruby-dotenv 3.1.8-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 156 kB
  • sloc: ruby: 539; makefile: 4
file content (10 lines) | stat: -rw-r--r-- 258 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
module Dotenv
  class Error < StandardError; end

  class MissingKeys < Error # :nodoc:
    def initialize(keys)
      key_word = "key#{(keys.size > 1) ? "s" : ""}"
      super("Missing required configuration #{key_word}: #{keys.inspect}")
    end
  end
end