replace throw with user_error()

This commit is contained in:
andrey012 2015-04-15 03:35:08 +03:00
parent b5e80bc176
commit 26086789ef

View File

@ -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