1- use anyhow:: { anyhow, Result } ;
21use async_trait:: async_trait;
32use clap:: { Parser , Subcommand } ;
3+ use color_eyre:: eyre:: { eyre, Result } ;
44
55use crate :: config;
66
@@ -48,7 +48,7 @@ impl super::Command for ConfigCommand {
4848 . userchromes
4949 . iter ( )
5050 . find ( |d| d. name . eq ( name) )
51- . ok_or ( anyhow ! ( "no userchrome with name {} exists" , name) ) ?;
51+ . ok_or ( eyre ! ( "no userchrome with name {} exists" , name) ) ?;
5252
5353 for c in & uc. configs {
5454 println ! ( "{}" , config:: format_userchrome_config( c) ) ;
@@ -68,7 +68,7 @@ impl super::Command for ConfigCommand {
6868 . userchromes
6969 . iter_mut ( )
7070 . find ( |d| d. name . eq ( name) )
71- . ok_or ( anyhow ! ( "no userchrome with name {} exists" , name) ) ?;
71+ . ok_or ( eyre ! ( "no userchrome with name {} exists" , name) ) ?;
7272
7373 let existing = chrome. configs . iter_mut ( ) . find ( |c| c. key == * key) ;
7474
@@ -94,7 +94,7 @@ impl super::Command for ConfigCommand {
9494 . userchromes
9595 . iter_mut ( )
9696 . find ( |d| d. name . eq ( name) )
97- . ok_or ( anyhow ! ( "no userchrome with name {} exists" , name) ) ?;
97+ . ok_or ( eyre ! ( "no userchrome with name {} exists" , name) ) ?;
9898
9999 let existing = chrome. configs . iter_mut ( ) . position ( |c| c. key == * key) ;
100100
0 commit comments