This project is archived and is in readonly mode.

#246 ✓resolved
Roger

more verbose warning on boot failure

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

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.

Comments and changes to this ticket

  • Roger

    Roger May 23rd, 2008 @ 11:00 PM

    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.

  • Adam S

    Adam S May 24th, 2008 @ 01:15 PM

    +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.

  • josh

    josh July 17th, 2008 @ 01:56 AM

    • State changed from “new” to “resolved”
    • Tag set to edge, patch, railties

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Pages