Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-3927

Emit an error instead of throw an error in the async callback

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.10.0
    • Node.js - Library
    • None

    Description

      because the data event of a connection is async handled, throw an exception can not tell the code the error. emit the error should be the correct way to handle the errors.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              lifei.vip 李飛
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: