From 8f10c34e348e142ebe3df5c216e78456b734d77c Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sat, 31 Mar 2007 16:53:31 +0000 Subject: [PATCH] Exception text conventionally does not have a terminating line break. --- includes/FileStore.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/FileStore.php b/includes/FileStore.php index 1fd35b01f6..8f25e2e1a8 100644 --- a/includes/FileStore.php +++ b/includes/FileStore.php @@ -106,7 +106,7 @@ class FileStore { private function copyFile( $sourcePath, $destPath, $flags=0 ) { if( !file_exists( $sourcePath ) ) { // Abort! Abort! - throw new FSException( "missing source file '$sourcePath'\n" ); + throw new FSException( "missing source file '$sourcePath'" ); } $transaction = new FSTransaction(); @@ -125,7 +125,7 @@ class FileStore { if( !$ok ) { throw new FSException( - "failed to create directory for '$destPath'\n" ); + "failed to create directory for '$destPath'" ); } } @@ -138,7 +138,7 @@ class FileStore { $transaction->addRollback( FSTransaction::DELETE_FILE, $destPath ); } else { throw new FSException( - __METHOD__." failed to copy '$sourcePath' to '$destPath'\n" ); + __METHOD__." failed to copy '$sourcePath' to '$destPath'" ); } } -- 2.20.1