mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Provide a better error if thor is missing
This commit is contained in:
parent
a4090bca6a
commit
d03af48a7d
1 changed files with 9 additions and 1 deletions
|
@ -1,4 +1,12 @@
|
|||
require 'thor/group'
|
||||
begin
|
||||
require 'thor/group'
|
||||
rescue LoadError
|
||||
puts "Thor is not available.\nIf you ran this command from a git checkout " \
|
||||
"of Rails, please make sure thor is installed,\nand run this command " \
|
||||
"as `ruby -rubygems /path/to/rails myapp --dev`"
|
||||
exit
|
||||
end
|
||||
|
||||
require 'rails/generators/actions'
|
||||
|
||||
module Rails
|
||||
|
|
Loading…
Reference in a new issue