Skip to content

Commit

Permalink
This should be an error
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Jan 25, 2019
1 parent 72efe10 commit 27a0c96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/console/controllers/ProjectConfigController.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ public function actionSync(): int
$updatesService = Craft::$app->getUpdates();

if ($updatesService->getIsCraftDbMigrationNeeded() || $updatesService->getIsPluginDbUpdateNeeded()) {
$this->stdout('Craft has pending migrations. Please run `craft migrate/all` first.' . PHP_EOL, Console::FG_YELLOW);
return ExitCode::OK;
$this->stderr('Craft has pending migrations. Please run `craft migrate/all` first.' . PHP_EOL, Console::FG_RED);
return ExitCode::UNSPECIFIED_ERROR;
}

// Any plugins need to be installed/uninstalled?
Expand Down

0 comments on commit 27a0c96

Please sign in to comment.