Commit a908c192 authored by alexpott's avatar alexpott

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) {
protected function removeDirectoryJailed($directory) {
$pwd = ftp_pwd($this->connection);
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, '.');
if (!$list) {
......@@ -65,7 +65,7 @@ protected function removeDirectoryJailed($directory) {
}
ftp_chdir($this->connection, $pwd);
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) {
*/
protected function removeFileJailed($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) {
public function removeFileJailed($destination) {
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