[ https://issues.apache.org/jira/browse/THRIFT-3520?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Erickson updated THRIFT-3520: ---------------------------------- Description: PROBLEM Dart TSocket exposes an onError Stream<String>. However, the payload may be either a String or an Error, and should be typed as . It was incorrectly expecting a String, when the stream's type is Object. SOLUTION Accept an Object, to match the stream. was: PROBLEM Dart TSocketTransport listens to the TSocket.onError stream. It was incorrectly expecting a String, when the stream's type is Object. SOLUTION Accept an Object, to match the stream. > Dart TSocket onError handler is too restrictive > ----------------------------------------------- > > Key: THRIFT-3520 > URL: https://issues.apache.org/jira/browse/THRIFT-3520 > Project: Thrift > Issue Type: Bug > Components: Dart - Library > Reporter: Mark Erickson > Assignee: Mark Erickson > Fix For: 1.0 > > > PROBLEM > Dart TSocket exposes an onError Stream<String>. However, the payload may be > either a String or an Error, and should be typed as . It was incorrectly > expecting a String, when the stream's type is Object. > SOLUTION > Accept an Object, to match the stream. -- This message was sent by Atlassian JIRA (v6.3.4#6332)