File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ impl Layer {
159159
160160 pub fn write ( & self ) -> Result < ( ) > {
161161 let contents = self . data . to_string ( ) ;
162- std:: fs:: write ( & self . source , contents) . wrap_err ( "couldn't write config" )
162+ std:: fs:: write ( & self . source , contents) . wrap_err ( format ! ( "couldn't write config {}" , self . source . display ( ) ) )
163163 }
164164}
165165
@@ -465,6 +465,11 @@ mod tests {
465465
466466 let home_dir = tempdir ( ) . expect ( "couldn't create temp dir" ) ;
467467 let global_config = home_dir. path ( ) . join ( ".config" ) . join ( "coman" ) . join ( "coman.toml" ) ;
468+ println ! (
469+ "global: {}, project: {}" ,
470+ global_config. display( ) ,
471+ project_config. display( )
472+ ) ;
468473 std:: fs:: create_dir_all ( global_config. parent ( ) . unwrap ( ) ) . expect ( "couldn't create config dir" ) ;
469474 std:: fs:: write ( & global_config, "[cscs]\n current_system = \" global\" " ) . expect ( "couldn't create config file" ) ;
470475
You can’t perform that action at this time.
0 commit comments