From 64c769dc913b5295da80ef08f1c31c838ed2cbde Mon Sep 17 00:00:00 2001 From: webeweb Date: Mon, 1 Oct 2018 18:27:56 +0200 Subject: [PATCH] Fix exception messages --- src/FileSystem/FileHelper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/FileSystem/FileHelper.php b/src/FileSystem/FileHelper.php index 5f5c1cc33..bbced3c34 100644 --- a/src/FileSystem/FileHelper.php +++ b/src/FileSystem/FileHelper.php @@ -60,10 +60,10 @@ public static function appendTo($src, $dest, $newline = false) { // Close the files. if (false === @fclose($reader)) { - throw new IOException(sprintf("Failed to open \"%s\"", $src)); + throw new IOException(sprintf("Failed to close \"%s\"", $src)); } if (false === @fclose($writer)) { - throw new IOException(sprintf("Failed to open \"%s\"", $dest)); + throw new IOException(sprintf("Failed to close \"%s\"", $dest)); } }