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

Improve format of debugging errors which contain new lines and whitespace

    XMLWordPrintable

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • Future Dev
    • None
    • Logging

    Description

      There are a bunch of low level errors which are returning and error from an even lower level like the database and when these are show they get pretty mangled:

      It would be much better to safely return these formatted with some <code> or <pre> blocks. Even the example below could be even better by honoring the whitespace indenting and adding some fixed width fonts for the bits which we know are usually the kind of thing echo'ed into a shell:

      Attachments

        Activity

          People

            Unassigned Unassigned
            brendanheywood Brendan Heywood
            David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: