Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-5607

Mongoid::Persistable#atomically shouldn't rescue Exception

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 9.0.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      We should avoid rescuing Exception; favoring StandardError instead (guidance based on https://thoughtbot.com/blog/rescue-standarderror-not-exception)

      see https://github.com/mongodb/mongoid/pull/5606

            Assignee:
            jamis.buck@mongodb.com Jamis Buck
            Reporter:
            alex.bevilacqua@mongodb.com Alex Bevilacqua
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: