Commit a908c192 authored by alexpott's avatar alexpott
Browse files

Issue #2859029 by maya96, ajmantis, Pavan B S, joe_carvajal,...

Issue #2859029 by maya96, ajmantis, Pavan B S, joe_carvajal, manojbisht_drupal, alexpott, cilefen: Grammar issue with FTP error message
parent 2be29106
...@@ -45,7 +45,7 @@ protected function createDirectoryJailed($directory) { ...@@ -45,7 +45,7 @@ protected function createDirectoryJailed($directory) {
protected function removeDirectoryJailed($directory) { protected function removeDirectoryJailed($directory) {
$pwd = ftp_pwd($this->connection); $pwd = ftp_pwd($this->connection);
if (!ftp_chdir($this->connection, $directory)) { if (!ftp_chdir($this->connection, $directory)) {
throw new FileTransferException("Unable to change to directory @directory", NULL, ['@directory' => $directory]); throw new FileTransferException("Unable to change the current directory to @directory", NULL, ['@directory' => $directory]);
} }
$list = @ftp_nlist($this->connection, '.'); $list = @ftp_nlist($this->connection, '.');
if (!$list) { if (!$list) {
...@@ -65,7 +65,7 @@ protected function removeDirectoryJailed($directory) { ...@@ -65,7 +65,7 @@ protected function removeDirectoryJailed($directory) {
} }
ftp_chdir($this->connection, $pwd); ftp_chdir($this->connection, $pwd);
if (!ftp_rmdir($this->connection, $directory)) { if (!ftp_rmdir($this->connection, $directory)) {
throw new FileTransferException("Unable to remove to directory @directory", NULL, ['@directory' => $directory]); throw new FileTransferException("Unable to remove the directory @directory", NULL, ['@directory' => $directory]);
} }
} }
...@@ -74,7 +74,7 @@ protected function removeDirectoryJailed($directory) { ...@@ -74,7 +74,7 @@ protected function removeDirectoryJailed($directory) {
*/ */
protected function removeFileJailed($destination) { protected function removeFileJailed($destination) {
if (!ftp_delete($this->connection, $destination)) { if (!ftp_delete($this->connection, $destination)) {
throw new FileTransferException("Unable to remove to file @file", NULL, ['@file' => $destination]); throw new FileTransferException("Unable to remove the file @file", NULL, ['@file' => $destination]);
} }
} }
......
...@@ -46,7 +46,7 @@ public function createDirectoryJailed($directory) { ...@@ -46,7 +46,7 @@ public function createDirectoryJailed($directory) {
public function removeFileJailed($destination) { public function removeFileJailed($destination) {
if (!ftp_delete($this->connection, $item)) { if (!ftp_delete($this->connection, $item)) {
throw new FileTransferException('Unable to remove to file @file.', NULL, ['@file' => $item]); throw new FileTransferException('Unable to remove the file @file.', NULL, ['@file' => $item]);
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment