Uploaded image for project: 'BookBrainz'
  1. BookBrainz
  2. BB-244

Return *something* in promises to avoid printed errors

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Site Backend
    • Labels:

      Description

      The following warning message shows up every time bookbrainz is launched:
      (node:12871) Warning: a promise was created in a handler at /Users/username/bookbrainz-site/lib/server/helpers/middleware.js:57:4 but was not returned from it, see http://goo.gl/rRqMUw
      at Child.fetch (/Users/username/bookbrainz-site/node_modules/bluebird/js/release/method.js:13:13)

      There are other places in the code where nothing is returned in promises that should also get fixed

        Attachments

          Activity

            People

            • Assignee:
              rihan27 rihan pereira
              Reporter:
              shivamt Shivam Tripathi
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package