Display error from merge, if merge gives error

This commit is contained in:
Nathan Gray 2012-05-16 17:33:37 +00:00
parent a1e8b468b4
commit 92471650fe

View File

@ -740,6 +740,7 @@ function force_download(_action, _senders)
if (!$settings) $settings = $GLOBALS['egw_info']['user']['preferences']['filemanager']['default_document'];
$document_merge = new filemanager_merge(egw_vfs::decodePath($dir));
$msg = $document_merge->download($settings, $selected, '', $GLOBALS['egw_info']['user']['preferences']['filemanager']['document_dir']);
if($msg) return $msg;
$failed = count($selected);
return false;
}