Permalink
Browse files

If someone doesn't have rack while running with --server, print instr…

…uctions.
  • Loading branch information...
1 parent 2594615 commit 9c17650d771dfdad8db962671aecebc3f992c071 @botanicus botanicus committed with Almad Jul 13, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/apiary/commands/preview.rb
View
4 lib/apiary/commands/preview.rb
@@ -62,6 +62,10 @@ def run_server(apib_path, options)
end
Rack::Server.start(Port: port, app: app)
+ rescue LoadError
+ puts "If you want to run the server, you need rack."
+ puts "gem install rack"
+ exit 1
end
def preview_path(apib_path)

0 comments on commit 9c17650

Please sign in to comment.