Skip to content

Commit 2a03d81

Browse files
committed
better exception if rsync failed
1 parent 2051847 commit 2a03d81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Services/FileManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function syncFiles($options = array())
111111
system("rsync -a --delete " . escapeshellarg($from . '/') . " " . escapeshellarg($to), $result);
112112
if ($result !== 0)
113113
{
114-
throw new \Exception("Sync failed");
114+
throw new \Exception("Sync failed with errorcode '$result'!");
115115
}
116116
if (isset($options['remove_from_folder']) && $options['remove_from_folder'])
117117
{

0 commit comments

Comments
 (0)