merb_datamapper should show friendly error message if an invalid environment flag is passed to CLI
Reported by Alex Coles | May 13th, 2008 @ 08:58 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.
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
