Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Commit

Permalink
There is no method $this->warn(), replace with stderr and outputting …
Browse files Browse the repository at this point in the history
…the text in red colors to display that it is a problem
  • Loading branch information
eriweb committed Oct 19, 2018
1 parent 840108d commit aa7a026
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/console/controllers/DefaultController.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function actionIndex()
$logDirectory = Craft::$app->getPath()->getLogPath();

if (!$path = $this->findLatestLogFile($logDirectory, $this->type)) {
$this->warn("Could not find a log file in `{$logDirectory}`.");
$this->stderr("Could not find a log file in `{$logDirectory}`.\n", Console::FG_RED);

return;
}
Expand Down

0 comments on commit aa7a026

Please sign in to comment.