softprops / hyperlocal

🔌 ✨rustlang hyper bindings for local unix domain sockets
MIT License
230 stars 46 forks source link

Return an error if path is invalid #75

Open WhyNotHugo opened 3 weeks ago

WhyNotHugo commented 3 weeks ago

Instead of panicking when a path is invalid, return an error which can properly be handled by the caller.

Note that this is a backwards-incompatible change, so the next version should be 0.10.0. Updating call-sites is usually trivial.