Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Commit

Permalink
Output a useful message if lita start is run outside a Lita project.
Browse files Browse the repository at this point in the history
Fixes #9.
  • Loading branch information
jimmycuadra committed Aug 25, 2013
1 parent a64a96d commit 05ff359
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lib/lita/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,16 @@ def self.source_root
desc: "Kill existing Lita processes when starting the daemon",
type: :boolean
def start
Bundler.require
begin
Bundler.require
rescue Bundler::GemfileNotFound
no_gemfile_warning = <<-WARN.chomp
The default command "start" must be run inside a Lita project. Try running \
`lita new` to generate a new Lita project or `lita help` to see all commands.
WARN
say no_gemfile_warning, :red
abort
end

if options[:daemonize]
Daemon.new(
Expand Down

0 comments on commit 05ff359

Please sign in to comment.