File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ fn find_php() -> Result<PathBuf> {
7474 if let Some ( path) = path_from_env ( "PHP" ) {
7575 if !path. try_exists ( ) ? {
7676 // If path was explicitly given and it can't be found, this is a hard error
77- bail ! ( "php executable not found at {:? }" , path) ;
77+ bail ! ( "php executable not found at {}" , path. display ( ) ) ;
7878 }
7979 return Ok ( path) ;
8080 }
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ impl Provider<'_> {
1818 let stdout = String :: from_utf8_lossy ( & cmd. stdout ) ;
1919 if !cmd. status . success ( ) {
2020 let stderr = String :: from_utf8_lossy ( & cmd. stderr ) ;
21- bail ! ( "Failed to run `php-config`: {} {}" , stdout , stderr ) ;
21+ bail ! ( "Failed to run `php-config`: {stdout } {stderr}" ) ;
2222 }
2323 Ok ( stdout. to_string ( ) )
2424 }
@@ -28,7 +28,7 @@ impl Provider<'_> {
2828 if let Some ( path) = path_from_env ( "PHP_CONFIG" ) {
2929 if !path. try_exists ( ) ? {
3030 // If path was explicitly given and it can't be found, this is a hard error
31- bail ! ( "php-config executable not found at {:? }" , path) ;
31+ bail ! ( "php-config executable not found at {}" , path. display ( ) ) ;
3232 }
3333 return Ok ( path) ;
3434 }
You can’t perform that action at this time.
0 commit comments