AnyEvent-Twitter-Stream icon indicating copy to clipboard operation
AnyEvent-Twitter-Stream copied to clipboard

Protect JSON decoding

Open nickandrew opened this issue 10 years ago • 2 comments

Wrap JSON decoding inside an eval to catch any decoding errors, which are now emitted as an event.

Stops the stream dying if there's some error and provides a way for upstream to detect the errors.

nickandrew avatar Nov 16 '14 03:11 nickandrew

Ping!

nickandrew avatar Dec 10 '14 02:12 nickandrew

Ping @miyagawa !

nickandrew avatar Nov 26 '15 02:11 nickandrew