kylefarris / clamscan

A robust ClamAV virus scanning library supporting scanning files, directories, and streams with local sockets, local/remote TCP, and local clamscan/clamdscan binaries (with failover).
MIT License
236 stars 69 forks source link

add handle_error in catch block #39

Closed sloanholzman closed 4 years ago

sloanholzman commented 5 years ago

I noticed that when I had the wrong port, it console.error'd but did not actually throw an error. As a result, I couldn't properly error handle in my project.

This small change should allow me to listen for the error and handle appropriately.

Thank you!

kylefarris commented 4 years ago

Fixes #51