Exception: Compote::EnvFileOpenError

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:, config:) ⇒ EnvFileOpenError



69
70
71
72
73
74
75
76
77
# File 'lib/compote/error.rb', line 69

def initialize ( error:, config: )

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

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

  super message

end