Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-17425

Unit testing: exception display is horrid, should include moodle_exception details

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Unit tests
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      In a unit test, when something throws an exception, like say a DML exception, you get the extra-helpful 'oh there's an exception' box which tells you sod all about the actual error that occurred or the SQL involved. To add insult to injury, this box isn't even formatted like the other exception results.

      I am going to make it appear in a normal box and include all the moodle_exception information if available.

        Attachments

          Activity

            People

            Assignee:
            quen Sam Marshall
            Reporter:
            quen Sam Marshall
            Participants:
            Component watchers:
            Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              24/Nov/10