From 26086789ef07af167ae31cdbe9fce00482501f29 Mon Sep 17 00:00:00 2001 From: andrey012 Date: Wed, 15 Apr 2015 03:35:08 +0300 Subject: [PATCH] replace throw with user_error() --- phpseclib/Net/SFTP.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpseclib/Net/SFTP.php b/phpseclib/Net/SFTP.php index 55cf52c1..1d7b6d3e 100644 --- a/phpseclib/Net/SFTP.php +++ b/phpseclib/Net/SFTP.php @@ -1808,7 +1808,7 @@ class SFTP extends SSH2 switch (true) { case $mode & self::SOURCE_CALLBACK; if (!is_callable($data)) { - throw new Exception('if you specify SOURCE_CALLBACK then $data should be callable'); + user_error("\$data should be is_callable() if you specify SOURCE_CALLBACK flag"); } $callback = $data; // do nothing