1
0
mirror of https://github.com/danog/tgseclib.git synced 2025-01-22 14:01:20 +01:00

SCP: replace user_error with exception

This commit is contained in:
terrafrost 2019-01-27 17:10:06 -06:00
parent 0f3cbce359
commit 41c76d6e0e

View File

@ -149,8 +149,7 @@ class SCP
}
if (empty($remote_file)) {
user_error('remote_file cannot be blank', E_USER_NOTICE);
return false;
throw new \InvalidArgumentException('remote_file cannot be blank');
}
if (!$this->ssh->exec('scp -t ' . escapeshellarg($remote_file), false)) { // -t = to