Module: Dist::Error

Included in:
Builder, Configuration, Configuration::Section, YamlLoader
Defined in:
lib/dist/error.rb

Instance Method Summary collapse

Instance Method Details

#error(error_string) ⇒ Object



2
3
4
5
# File 'lib/dist/error.rb', line 2

def error(error_string)
  puts "Error: #{error_string}"
  exit 1
end

#error_at(location, error_string) ⇒ Object



7
8
9
10
# File 'lib/dist/error.rb', line 7

def error_at(location, error_string)
  puts "Error at '#{location}': #{error_string}"
  exit 1
end