Bug fix to show/track errors on install/update

This commit is contained in:
Hillel Coren 2016-03-14 09:25:58 +02:00
parent 497a581bcd
commit e7df1f5e7c

View File

@ -231,7 +231,8 @@ class AppController extends BaseController
}
Artisan::call('optimize', array('--force' => true));
} catch (Exception $e) {
Response::make($e->getMessage(), 500);
Utils::logError($e);
return Response::make($e->getMessage(), 500);
}
}
@ -262,7 +263,8 @@ class AppController extends BaseController
Event::fire(new UserSettingsChanged());
Session::flash('message', trans('texts.processed_updates'));
} catch (Exception $e) {
Response::make($e->getMessage(), 500);
Utils::logError($e);
return Response::make($e->getMessage(), 500);
}
}