]> the.earth.li Git - mqttdeck.git/commit
Handle JSON parsing failures more gracefully
authorJonathan McDowell <noodles@earth.li>
Sat, 26 Apr 2025 18:24:58 +0000 (19:24 +0100)
committerJonathan McDowell <noodles@earth.li>
Sat, 26 Apr 2025 18:24:58 +0000 (19:24 +0100)
commitec3280c645d1d386cecc18917c1c2aa133e3a2ef
treea3fe7e91d9274d7045bb7f5cf4910b5a79683c8a
parenta7868abe2f98a6b21ef3cbcf9db8705d19c9652a
Handle JSON parsing failures more gracefully

Add a match block so we can return an error if we get some JSON we
can't decode instead of panicking our MQTT worker.
src/main.rs