printing a warning when the parser goes missing

This commit is contained in:
Jeremy Ashkenas
2010-01-06 22:41:09 -05:00
parent c49f2d8097
commit a5c1922200

View File

@@ -1,7 +1,13 @@
require 'optparse'
require 'fileutils'
require 'open3'
require File.expand_path(File.dirname(__FILE__) + '/../coffee-script')
begin
require File.expand_path(File.dirname(__FILE__) + '/../coffee-script')
rescue LoadError => e
puts(e.message)
puts("use \"rake build:parser\" to regenerate parser.rb")
exit(1)
end
module CoffeeScript