File: missing_keys.rb

package info (click to toggle)
ruby-dotenv 3.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 156 kB
  • sloc: ruby: 546; makefile: 4
file content (10 lines) | stat: -rw-r--r-- 252 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#{"s" if keys.size > 1}"
      super("Missing required configuration #{key_word}: #{keys.inspect}")
    end
  end
end