update config.rb file to puts error
Merge pull request #2 from richardking/master

puts error before exiting