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

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

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.10.0
    • Component/s: Node.js - Library
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: