class MotherBrain::InvalidEnvironmentJson

Public Class Methods

new(path, json_error=nil) click to toggle source
# File lib/mb/errors.rb, line 461
def initialize(path, json_error=nil)
  @path = path
end

Public Instance Methods

message() click to toggle source
# File lib/mb/errors.rb, line 465
def message
  msg = "Environment JSON contained in #{path} is invalid."
  msg << "\n#{json_error.message}" if json_error and json_error.responds_to?(:message)
  msg
end