mirror of
https://github.com/extrawurst/gitui.git
synced 2024-12-28 03:22:51 +03:00
log errors in key bindings parsing (#1491)
This commit is contained in:
parent
b424b9beeb
commit
32f6134309
@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
* `edit`-file command shown on commits msg ([#1461](https://github.com/extrawurst/gitui/issues/1461))
|
||||
* crash on branches popup in small terminal ([#1470](https://github.com/extrawurst/gitui/issues/1470))
|
||||
* `edit` command duplication ([#1489](https://github.com/extrawurst/gitui/issues/1489))
|
||||
* syntax errors in `key_bindings.ron` will be logged ([#1491](https://github.com/extrawurst/gitui/issues/1491))
|
||||
|
||||
### Changed
|
||||
* minimum supported rust version bumped to 1.64 (thank you `clap`)
|
||||
|
@ -205,8 +205,9 @@ impl Default for KeysList {
|
||||
impl KeysList {
|
||||
pub fn init(file: PathBuf) -> Self {
|
||||
if file.exists() {
|
||||
let file =
|
||||
KeysListFile::read_file(file).unwrap_or_default();
|
||||
let file = KeysListFile::read_file(file)
|
||||
.map_err(|e| log::error!("key binding error: {e}",))
|
||||
.unwrap_or_default();
|
||||
file.get_list()
|
||||
} else {
|
||||
Self::default()
|
||||
|
Loading…
Reference in New Issue
Block a user