From 0b19783966f0c631ea6e2fe44c7abe9256fe8716 Mon Sep 17 00:00:00 2001 From: andris-sevcenko Date: Thu, 21 Mar 2019 12:02:56 +0200 Subject: [PATCH] Partially fix #4015 --- CHANGELOG-v3.md | 1 + src/console/controllers/ProjectConfigController.php | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG-v3.md b/CHANGELOG-v3.md index 96797e173f0..7363687035e 100644 --- a/CHANGELOG-v3.md +++ b/CHANGELOG-v3.md @@ -16,6 +16,7 @@ - Fixed a bug where Craft wasn’t removing hyphens and other symbols from auto-generated asset titles. ([#4011](https://github.com/craftcms/cms/issues/4011)) - Fixed a PHP error that occurred when calling `craft\services\EntryRevisions::getDraftById()` or `getVersionById()` for a draft/version that belonged to a soft-deleted entry. ([#4013](https://github.com/craftcms/cms/issues/4013)) - Fixed a bug where Craft wasn’t respecting the site selection for routes defined in Settings → Routes. ([#4021](https://github.com/craftcms/cms/issues/4021)) +- Fixed an error where exception would not be logged if encountering an error while applying project config changes using the `project-config/sync` console command ([#4015](https://github.com/craftcms/cms/issues/4015)) ## 3.1.19 - 2019-03-19 diff --git a/src/console/controllers/ProjectConfigController.php b/src/console/controllers/ProjectConfigController.php index da30c9913e4..b495733a3f6 100644 --- a/src/console/controllers/ProjectConfigController.php +++ b/src/console/controllers/ProjectConfigController.php @@ -63,6 +63,7 @@ public function actionSync(): int $projectConfig->applyYamlChanges(); } catch (\Throwable $e) { $this->stderr('error: ' . $e->getMessage() . PHP_EOL, Console::FG_RED); + Craft::$app->getErrorHandler()->logException($e); return ExitCode::UNSPECIFIED_ERROR; } }