From 066fcd5cac6293869c581058385add43891d1989 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=A4rtner?= Date: Sun, 1 Sep 2013 15:49:13 +0200 Subject: [PATCH 1/3] Added docs for the changes proposed in symfony/symfony#8908 --- components/filesystem.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/filesystem.rst b/components/filesystem.rst index df97db82ca6..9b9ffef2eb1 100644 --- a/components/filesystem.rst +++ b/components/filesystem.rst @@ -28,7 +28,7 @@ endpoint for filesystem operations:: try { $fs->mkdir('/tmp/random/dir/' . mt_rand()); } catch (IOException $e) { - echo "An error occurred while creating your directory"; + echo "An error occurred while creating your directory at ".$e.getPath(); } .. note:: @@ -251,7 +251,7 @@ Error Handling -------------- Whenever something wrong happens, an exception implementing -:class:`Symfony\\Component\\Filesystem\\Exception\\ExceptionInterface` is +:class:`Symfony\\Component\\Filesystem\\Exception\\ExceptionInterface` and :class:`Symfony\\Component\\Filesystem\\Exception\\IOExceptionInterface` is thrown. .. note:: From 7afa87fbea5bba2b1799b1d2b93a0af3e20c31b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=A4rtner?= Date: Sun, 1 Sep 2013 16:55:44 +0200 Subject: [PATCH 2/3] Update filesystem.rst --- components/filesystem.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/filesystem.rst b/components/filesystem.rst index 9b9ffef2eb1..60344f6212e 100644 --- a/components/filesystem.rst +++ b/components/filesystem.rst @@ -251,8 +251,8 @@ Error Handling -------------- Whenever something wrong happens, an exception implementing -:class:`Symfony\\Component\\Filesystem\\Exception\\ExceptionInterface` and :class:`Symfony\\Component\\Filesystem\\Exception\\IOExceptionInterface` is -thrown. +:class:`Symfony\\Component\\Filesystem\\Exception\\ExceptionInterface` and +:class:`Symfony\\Component\\Filesystem\\Exception\\IOExceptionInterface` is thrown. .. note:: From feb346d14c16b11d54136d4025b6ddeb335e8cc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=A4rtner?= Date: Sun, 1 Sep 2013 21:59:54 +0200 Subject: [PATCH 3/3] Update filesystem.rst --- components/filesystem.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/filesystem.rst b/components/filesystem.rst index 60344f6212e..21c1afc1291 100644 --- a/components/filesystem.rst +++ b/components/filesystem.rst @@ -28,7 +28,7 @@ endpoint for filesystem operations:: try { $fs->mkdir('/tmp/random/dir/' . mt_rand()); } catch (IOException $e) { - echo "An error occurred while creating your directory at ".$e.getPath(); + echo "An error occurred while creating your directory at ".$e->getPath(); } .. note::