Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
printing a warning when the parser goes missing
  • Loading branch information
jashkenas committed Jan 7, 2010
1 parent c49f2d8 commit a5c1922
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/coffee_script/command_line.rb
@@ -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

Expand Down

0 comments on commit a5c1922

Please sign in to comment.