Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

more verbose warning on boot failure

#246

It would be helpful for at least a few people [myself included] if, when rails encounters a LoadError loading rubygems, it outputs what the error was.

In my instance someone was requiring, a few lines above, an added gem which I didn't have, however, the error was being swallowed up and blamed on a gem version [which wasn't the real cause].

This patch is simple and clears up any doubts for the user.

Reported by Roger · May 23rd, 2008 @ 06:45 PM

State: resolved
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Roger
    Roger

    here's the same patch using the approved git style patch instead of git diff.

    To test this patch apply, then go to boot.rb and add

    require 'nonexisting' within the

    load_rubygems

    method

    You should see a more appropriately output error message than what it had been before.

    May 23rd, 2008 @ 11:00 PM

  2. Adam S
    Adam S

    +1

    Patch works and seems a reasonable change. I'm pretty sure I've had a similar issue where the LoadError that wasn't rubygems.

    May 24th, 2008 @ 01:15 PM

  3. josh
    josh
    • State changed from new to resolved
    • Tag set to edge, patch, railties

    July 17th, 2008 @ 01:56 AM