moonfire-nvr/server/db
Scott Lamb 9a5957d5ef overhaul error messages
Inspired by the poor error message here:
https://github.com/scottlamb/moonfire-nvr/issues/107#issuecomment-777587727

*   print the friendlier Display version of the error rather than Debug.
    Eg, "EROFS: Read-only filesystem" rather than "Sys(EROFS)". Do this
    everywhere: on command exit, on syncer retries, and on stream
    retries.
*   print the most immediate problem and additional lines for each
    cause.
*   print the backtrace or an advertisement for RUST_BACKTRACE=1 if it's
    unavailable.
*   also mention RUST_BACKTRACE=1 in the troubleshooting guide.
*   add context in various places, including pathnames. There are surely
    many places more it'd be helpful, but this is a start.
*   allow subcommands to return failure without an Error.
    In particular, "moonfire-nvr check" does its own error printing
    because it wants to print all the errors it finds. Printing "see
    earlier errors" with a meaningless stack trace seems like it'd just
    confuse. But I also want to get rid of the misleading "Success" at
    the end and 0 return to the OS.
2021-02-11 10:57:09 -08:00
..
proto restructure into "server" and "ui" subdirs 2021-01-22 22:01:17 -08:00
testdata restructure into "server" and "ui" subdirs 2021-01-22 22:01:17 -08:00
upgrade overhaul error messages 2021-02-11 10:57:09 -08:00
Cargo.toml upgrade some other deps 2021-01-27 12:42:29 -08:00
auth.rs restructure into "server" and "ui" subdirs 2021-01-22 22:01:17 -08:00
build.rs restructure into "server" and "ui" subdirs 2021-01-22 22:01:17 -08:00
check.rs overhaul error messages 2021-02-11 10:57:09 -08:00
coding.rs restructure into "server" and "ui" subdirs 2021-01-22 22:01:17 -08:00
compare.rs restructure into "server" and "ui" subdirs 2021-01-22 22:01:17 -08:00
db.rs overhaul error messages 2021-02-11 10:57:09 -08:00
dir.rs overhaul error messages 2021-02-11 10:57:09 -08:00
fs.rs restructure into "server" and "ui" subdirs 2021-01-22 22:01:17 -08:00
lib.rs restructure into "server" and "ui" subdirs 2021-01-22 22:01:17 -08:00
raw.rs restructure into "server" and "ui" subdirs 2021-01-22 22:01:17 -08:00
recording.rs restructure into "server" and "ui" subdirs 2021-01-22 22:01:17 -08:00
schema.sql restructure into "server" and "ui" subdirs 2021-01-22 22:01:17 -08:00
signal.rs restructure into "server" and "ui" subdirs 2021-01-22 22:01:17 -08:00
testutil.rs restructure into "server" and "ui" subdirs 2021-01-22 22:01:17 -08:00
writer.rs restructure into "server" and "ui" subdirs 2021-01-22 22:01:17 -08:00