ddollar/foreman — Issue #152: foreman check with no Procfile
Author: mitchellh
Created: 2012-02-11 19:18:41+00:00
State: open

Howdy,

If you run a `foreman check` with no Procfile, you get the following:

```
vagrant-downloads master → foreman check
/Users/mitchellh/.rvm/gems/ruby-1.9.3-p0/gems/foreman-0.39.0/lib/foreman/procfile.rb:31:in `read': No such file or directory - Procfile (Errno::ENOENT)
from /Users/mitchellh/.rvm/gems/ruby-1.9.3-p0/gems/foreman-0.39.0/lib/foreman/procfile.rb:31:in `parse_procfile'
from /Users/mitchellh/.rvm/gems/ruby-1.9.3-p0/gems/foreman-0.39.0/lib/foreman/procfile.rb:17:in `initialize'
from /Users/mitchellh/.rvm/gems/ruby-1.9.3-p0/gems/foreman-0.39.0/lib/foreman/engine.rb:24:in `new'
from /Users/mitchellh/.rvm/gems/ruby-1.9.3-p0/gems/foreman-0.39.0/lib/foreman/engine.rb:24:in `initialize'
from /Users/mitchellh/.rvm/gems/ruby-1.9.3-p0/gems/foreman-0.39.0/lib/foreman/cli.rb:81:in `new'
from /Users/mitchellh/.rvm/gems/ruby-1.9.3-p0/gems/foreman-0.39.0/lib/foreman/cli.rb:81:in `engine'
from /Users/mitchellh/.rvm/gems/ruby-1.9.3-p0/gems/foreman-0.39.0/lib/foreman/cli.rb:57:in `check'
from /Users/mitchellh/.rvm/gems/ruby-1.9.3-p0/gems/thor-0.14.6/lib/thor/task.rb:22:in `run'
from /Users/mitchellh/.rvm/gems/ruby-1.9.3-p0/gems/thor-0.14.6/lib/thor/invocation.rb:118:in `invoke_task'
from /Users/mitchellh/.rvm/gems/ruby-1.9.3-p0/gems/thor-0.14.6/lib/thor.rb:263:in `dispatch'
from /Users/mitchellh/.rvm/gems/ruby-1.9.3-p0/gems/thor-0.14.6/lib/thor/base.rb:389:in `start'
from /Users/mitchellh/.rvm/gems/ruby-1.9.3-p0/gems/foreman-0.39.0/bin/foreman:7:in `'
from /Users/mitchellh/.rvm/gems/ruby-1.9.3-p0/bin/foreman:19:in `load'
from /Users/mitchellh/.rvm/gems/ruby-1.9.3-p0/bin/foreman:19:in `

'
```

While this is an accurate stack trace, I think it would be nicer to have a human-friendly error message. :)

Mitchell