initiative-sh / initiative.sh

A web-based command line for game masters
https://initiative.sh/
GNU General Public License v3.0
44 stars 4 forks source link

Make errors idiomatic #307

Open MikkelPaulson opened 1 year ago

MikkelPaulson commented 1 year ago

Rust errors:

Most of the errors in the project, including the user-facing errors, satisfy none of these constraints. Refactor the various Result types, particularly the awkward and pervasive Result<T, Cow<str, 'static>>, to use proper enums that can bundle debugging information.