Bryan Richardson
12/20/2007 11:46:00 PM
[Note: parts of this message were removed to make it a legal post.]
Thanks for responding. Actually, I'm an idiot and wasn't passing "DB:PG:"
along with the name of my database. You are correct in that the problem was
in my "<do something with file> section of the code. Sorry for the useless
post!!! -- BTR
On Dec 20, 2007 3:09 PM, Adam Shelly <adam.shelly@gmail.com> wrote:
> On 12/20/07, Bryan Richardson <btricha@gmail.com> wrote:
> > Hello,
> >
> > Does anyone know what causes the "Invalid Data Source Name" exception?
> I
> > get this from OptionParser. Here's my code:
> >
> > opts = OptionParser.new
> > opts.on('--load-file FILE') do |file|
> > <do something with file>
> > end
> >
>
> my guess is that the exception is coming from your mysterious <do
> something with file>, since I can't recreate the behavior no matter
> what filename I pass, even an invalid one.
>
>