Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit 5045410

Browse files
committed
And WorkspaceAuthRequired instead of simple exception
1 parent aea7dd8 commit 5045410

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/src/plugins/access.ftp/FtpAccessWrapper.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
use Pydio\Access\Core\IAjxpWrapper;
2626
use Pydio\Access\Core\Model\AJXP_Node;
2727
use Pydio\Auth\Core\MemorySafe;
28+
use Pydio\Core\Exception\WorkspaceAuthRequired;
2829
use Pydio\Core\Model\ContextInterface;
2930

3031

@@ -745,7 +746,7 @@ protected function createFTPLink()
745746
//register_shutdown_function('ftp_close', $link);
746747
@ftp_set_option($link, FTP_TIMEOUT_SEC, 10);
747748
if (!@ftp_login($link,$this->user,$this->password)) {
748-
throw new PydioException("Cannot login to FTP server with user $this->user");
749+
throw new WorkspaceAuthRequired($this->repositoryId, "Cannot login to FTP server with user $this->user");
749750
}
750751
if (!$this->ftpActive) {
751752
@ftp_pasv($link, true);

0 commit comments

Comments
 (0)