masumsoft / express-cassandra

Cassandra ORM/ODM/OGM for NodeJS with support for Apache Cassandra, ScyllaDB, Datastax Enterprise, Elassandra & JanusGraph.
http://express-cassandra.readthedocs.io
GNU Lesser General Public License v3.0
232 stars 68 forks source link

add 'error' handler on stream event emitter. #274

Closed mmillies closed 2 months ago

mmillies commented 2 months ago

If 'error' events are not handled, Node.js crashes. So adding the event handler here to propagate up the error.

Feedback is welcome.

Please note that I didn't run the test harness. If this change looks reasonable, I can invest in setting up a local dev environment for this project and run the tests.

closes: #273