@@ -108,9 +108,12 @@ |
||
| 108 | 108 | */ |
| 109 | 109 | public function scan( string $path = null ) : iterable |
| 110 | 110 | { |
| 111 | - try { |
|
| 111 | + try |
|
| 112 | + { |
|
| 112 | 113 | return new \DirectoryIterator( $this->resolve( (string) $path ) ); |
| 113 | - } catch( \Exception $e ) { |
|
| 114 | + } |
|
| 115 | + catch( \Exception $e ) |
|
| 116 | + { |
|
| 114 | 117 | throw new Exception( $e->getMessage(), 0, $e ); |
| 115 | 118 | } |
| 116 | 119 | } |