
merb_datamapper should show friendly error message if an invalid environment flag is passed to CLI
Reported by Alex Coles | May 13th, 2008 @ 08:59 AM
Currently, if an invalid environment is passed (environments are case-sensitive) then a less-than friendly error message is presented to the user.
For example:
merb -i -e test
works, but
merb -i -e TEST
presents the following error message to a user:
/Library/Ruby/Gems/1.8/gems/merb_datamapper-0.9.3/lib/merb/orms/data_mapper/connection.rb:63:in `symbolize_keys': undefined method `each' for nil:NilClass (NoMethodError)
This ticket was originally (incorrectly) posted to the Merb Issue Tracker: http://merb.lighthouseapp.com/pr...
Comments and changes to this ticket
-
Sam Smoot May 14th, 2008 @ 10:20 PM
Yeah... CLI should take a DM connection string and search for models in the path I think. It needs some small amount of updates to make this happen.
-
Dan Kubb (dkubb) November 28th, 2008 @ 02:21 AM
- State changed from new to invalid
- Assigned user cleared.
Alex, sorry to do this to you, but merb_datamapper has been transfered back to the merb team for maintenance, so you probably want to take this up with them.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »