Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 81698fe

Browse files
committed
Merge pull request #2947 from ChristianGaertner/patch-1
[WCM] Added docs for the changes proposed in symfony/symfony#8908
2 parents 574d7a8 + feb346d commit 81698fe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/filesystem.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ endpoint for filesystem operations::
2828
try {
2929
$fs->mkdir('/tmp/random/dir/' . mt_rand());
3030
} catch (IOException $e) {
31-
echo "An error occurred while creating your directory";
31+
echo "An error occurred while creating your directory at ".$e->getPath();
3232
}
3333

3434
.. note::
@@ -251,8 +251,8 @@ Error Handling
251251
--------------
252252

253253
Whenever something wrong happens, an exception implementing
254-
:class:`Symfony\\Component\\Filesystem\\Exception\\ExceptionInterface` is
255-
thrown.
254+
:class:`Symfony\\Component\\Filesystem\\Exception\\ExceptionInterface` and
255+
:class:`Symfony\\Component\\Filesystem\\Exception\\IOExceptionInterface` is thrown.
256256

257257
.. note::
258258

0 commit comments

Comments
 (0)