Uploaded image for project: 'Nuxeo Documentation'
  1. Nuxeo Documentation
  2. NXDOC-1376

Improve error logs in Tutorial "Discover Nuxeo Platform APIs"

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Fast Track (FT)
    • Fix Version/s: 9.3
    • Component/s: How-tos / Tutorials
    • Sprint:
      nxProduct-W46, nxProduct-2017-W48, nxProduct-2017-W50, nxProduct-2017-W52, nxK-2018-2, nxK-2018-3, nxK-2018-4, nxK-2018-5, nxK-2018-7, nxK-2018-8, nxK-2018-9

      Description

      In the tutorial Discover Nuxeo Platform APIs, improve how we show errors.
      Replace
      code
      console.log('Apologies, an error occurred.');
      console.log(error);
      code
      With
      code
      console.log('Apologies, an error occurred.');
      console.log(error);
      if (error.response)

      { error.response.json().then(json => console.log(json)); }

      code

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: