Currently, when blame-palette is set to an empty string, the application panics:
$ git blame ARCHITECTURE.md | delta --blame-palette ""
thread 'main' panicked at src/handlers/blame.rs:175:47:
attempt to calculate the remainder with a divisor of zero
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
This patch replaces this with a nicer error message:
$ git blame ARCHITECTURE.md | delta --blame-palette ""
Option 'blame-palette' must not be empty.
Currently, when
blame-palette
is set to an empty string, the application panics:This patch replaces this with a nicer error message: