File tree 1 file changed +5
-4
lines changed
src/Umpirsky/PermissionsHandler
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -10,27 +10,28 @@ class ScriptHandler
10
10
public static function setPermissions (CommandEvent $ event )
11
11
{
12
12
if ('WIN ' === strtoupper (substr (PHP_OS , 0 , 3 ))) {
13
- $ event ->getIO ()->write ('No permissions setup is required on Windows. ' );
13
+ $ event ->getIO ()->write ('<info> No permissions setup is required on Windows.</info> ' );
14
14
return ;
15
15
}
16
-
16
+
17
17
$ event ->getIO ()->write ('Setting up permissions. ' );
18
18
19
19
try {
20
20
self ::setPermissionsSetfacl ($ event );
21
21
22
22
return ;
23
23
} catch (ProcessFailedException $ setfaclException ) {
24
+ $ event ->getIO ()->write (sprintf ('<error>%s</error> ' , $ setfaclException ->getMessage ()));
25
+ $ event ->getIO ()->write ('<info>Trying chmod...</info> ' );
24
26
}
25
27
26
28
try {
27
29
self ::setPermissionsChmod ($ event );
28
30
29
31
return ;
30
32
} catch (ProcessFailedException $ chmodException ) {
33
+ $ event ->getIO ()->write (sprintf ('<error>%s</error> ' , $ chmodException ->getMessage ()));
31
34
}
32
-
33
- throw $ setfaclException ;
34
35
}
35
36
36
37
public static function setPermissionsSetfacl (CommandEvent $ event )
You can’t perform that action at this time.
0 commit comments