tsnlab / libtsn

TSN library for C
GNU General Public License v3.0
5 stars 3 forks source link

return suitable string when error occur #34 #39

Open junppyo opened 1 year ago

junppyo commented 1 year ago

change unwrap to expect

https://github.com/tsnlab/libtsn/blob/64745a9d63dc5fb41cde5f34b6dc5fee1600298e/src/cbs.rs#L35 https://github.com/tsnlab/libtsn/blob/1042118724a27b37e5e6bb628b9ebf876fbfb540/src/cbs.rs#L36

and change necessary last_os_error to error msg

https://github.com/tsnlab/libtsn/blob/64745a9d63dc5fb41cde5f34b6dc5fee1600298e/src/lib.rs#L84 https://github.com/tsnlab/libtsn/blob/1042118724a27b37e5e6bb628b9ebf876fbfb540/src/lib.rs#L84