File tree Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -253,22 +253,21 @@ impl DevelPack {
253253 . iter ( )
254254 . map ( |lib| php_lib_path. join ( lib) )
255255 . find ( |path| path. exists ( ) )
256- . unwrap_or_else ( ||
257- panic ! (
258- "{}" ,
259- if is_debug {
260- format!(
261- r#"Error: No suitable PHP library found in '{}'.
256+ . expect ( & format ! (
257+ "{}" ,
258+ if is_debug {
259+ format!(
260+ r#"Error: No suitable PHP library found in '{}'.
262261To build the application in DEBUG mode on Windows,
263262you must have a PHP SDK built with the DEBUG option enabled
264263and specify the PHP_LIB to the folder containing the lib files.
265264For example: set PHP_LIB=C:\php-sdk\php-dev\vc16\x64\php-8.3.13-src\x64\Debug_TS."# ,
266- php_lib_path. display( )
267- )
268- } else {
269- format!( "Error: No suitable PHP library found in '{}'." , php_lib_path. display( ) )
270- }
271- ) )
265+ php_lib_path. display( )
266+ )
267+ } else {
268+ format!( "Error: No suitable PHP library found in '{}'." , php_lib_path. display( ) )
269+ }
270+ ) )
272271 }
273272
274273 /// Returns a list of include paths to pass to the compiler.
You can’t perform that action at this time.
0 commit comments