Exception: Compote::EnvFileFormatError

Inherits:
Error
  • Object
show all
Defined in:
lib/compote/error.rb

Instance Attribute Summary

Attributes inherited from Error

#message

Instance Method Summary collapse

Constructor Details

#initialize(error:, path:, config:) ⇒ EnvFileFormatError

Returns a new instance of EnvFileFormatError.



84
85
86
87
88
89
90
91
92
# File 'lib/compote/error.rb', line 84

def initialize ( error:, path:, config: )

  message = "Error loading env file: #{ error.message } - \"#{ path }\""

  message += "\n" + "required from #{ config.file_name }"

  super message

end