Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Inscrutible error messages percolated from rugged #1

Open
dbp opened this issue Jun 25, 2013 · 0 comments
Open

Inscrutible error messages percolated from rugged #1

dbp opened this issue Jun 25, 2013 · 0 comments
Labels

Comments

@dbp
Copy link
Contributor

dbp commented Jun 25, 2013

When I try to rake db:seed when the assignments directory is not a git repository, I get no relevant error message.

I get something like:

rake aborted!
/home/dbp/code/captain-teach/src/assignments
/home/dbp/code/captain-teach/app/app/models/user_repo.rb:44:in `rescue in init'
/home/dbp/code/captain-teach/app/app/models/user_repo.rb:35:in `init'
/home/dbp/.rvm/gems/ruby-1.9.3-p362@captain-teach/gems/activesupport-4.0.0.rc1/lib/active_support/callbacks.rb:394:
in `_run__565035237__initialize__callbacks'
...

Now the first two lines in the backtrace indicate where the error came from, but it's still a little ridiculous. If I replicate the command that is to blame,

captains_log = UserRepo.create!(:path => ASSIGNMENTS_PATH)

At the console, I get an appropriate message.

UserRepo::NotAGitRepo: /home/dbp/code/captain-teach/src/assignments
...

This is probably not something we can fix, just good to keep track of.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant