mirror of
				https://github.com/jashkenas/coffeescript.git
				synced 2022-11-09 12:23:24 -05:00 
			
		
		
		
	printing a warning when the parser goes missing
This commit is contained in:
		
							parent
							
								
									c49f2d8097
								
							
						
					
					
						commit
						a5c1922200
					
				
					 1 changed files with 7 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -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
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue