diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2012-09-26 12:27:34 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2012-09-26 12:27:43 +0200 |
commit | 0192d920f05f231018500abf637d9877d779d5b9 (patch) | |
tree | e7b822810b9148edeb32472d473b4834bb467234 /apps/files_sharing/appinfo/update.php | |
parent | fcd70246db779c86f715ba7ae736e3a02b8b59fd (diff) | |
download | nextcloud-server-0192d920f05f231018500abf637d9877d779d5b9.tar.gz nextcloud-server-0192d920f05f231018500abf637d9877d779d5b9.zip |
Sharing: write update errors to logfile; do not die on errors
Diffstat (limited to 'apps/files_sharing/appinfo/update.php')
-rw-r--r-- | apps/files_sharing/appinfo/update.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/appinfo/update.php b/apps/files_sharing/appinfo/update.php index 21f23c652d1..2beeb6316bd 100644 --- a/apps/files_sharing/appinfo/update.php +++ b/apps/files_sharing/appinfo/update.php @@ -50,13 +50,13 @@ if (version_compare($installedVersion, '0.3', '<')) { } catch (Exception $e) { $update_error = true; - echo 'Skipping sharing "'.$row['source'].'" to "'.$shareWith.'" (error is "'.$e->getMessage().'")<br/>'; + OCP\Util::writeLog('files_sharing', 'Upgrade Routine: Skipping sharing "'.$row['source'].'" to "'.$shareWith.'" (error is "'.$e->getMessage().'")', OCP\Util::WARN); } OC_Util::tearDownFS(); } } if ($update_error) { - throw new Exception('There were some problems upgrading the sharing of files'); + OCP\Util::writeLog('files_sharing', 'There were some problems upgrading the sharing of files', OCP\Util::ERROR); } // NOTE: Let's drop the table after more testing // $query = OCP\DB::prepare('DROP TABLE `*PREFIX*sharing`'); |