DAC098 / RFS

custom made file server written in rust.
0 stars 0 forks source link

error handling and types #31

Closed DAC098 closed 10 months ago

DAC098 commented 12 months ago

error responses have been painful to deal with. need to do something to update the error handling to make it easier to work with.

the biggest thing is that the error kind is based on a string but that can probably be a defined enum to help with compiler checks and having a known list of possible error kinds vs various strings all over the place. with the defined enum error kind, the server errors can use that to auto fill any necessary properties without having to always define then each time.

DAC098 commented 10 months ago

well I made some updates to the error types and responses. it has cleaned up a fair amount of stuff and we shall see if it makes things any easier.