diff options
author | kondou <kondou@ts.unde.re> | 2013-08-09 18:01:49 +0200 |
---|---|---|
committer | kondou <kondou@ts.unde.re> | 2013-08-09 18:01:49 +0200 |
commit | 605050df9b42ba68b2d8c34a4075a5af4ebd312c (patch) | |
tree | c0a15612fc7c7bb65a90f1c4dedf30d85d4d3f5f /lib | |
parent | 1a4465f41d3fe334f42782545e3130a19796e590 (diff) | |
download | nextcloud-server-605050df9b42ba68b2d8c34a4075a5af4ebd312c.tar.gz nextcloud-server-605050df9b42ba68b2d8c34a4075a5af4ebd312c.zip |
Log exception at the catching code
Diffstat (limited to 'lib')
-rw-r--r-- | lib/app.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/app.php b/lib/app.php index 1ff18c799cb..8ac4a16ffd0 100644 --- a/lib/app.php +++ b/lib/app.php @@ -235,11 +235,11 @@ class OC_App{ $info=OC_App::getAppInfo($app); $version=OC_Util::getVersion(); if(!isset($info['require']) or !self::isAppVersionCompatible($version, $info['require'])) { - OC_Log::write('core', - 'App "'.$info['name'].'" can\'t be installed because it is' - .' not compatible with this version of ownCloud', - OC_Log::ERROR); - throw new \Exception($l->t("App can't be installed because it is not compatible with this version of ownCloud.")); + throw new \Exception( + $l->t("App \"%s\" can't be installed because it is not compatible with this version of ownCloud.", + array($info['name']) + ) + ); }else{ OC_Appconfig::setValue( $app, 'enabled', 'yes' ); if(isset($appdata['id'])) { |