Commit 3de7bce6 by Alexander Kochetov

Migration command show correct directory path while it not exist

parent 53e249d2
...@@ -113,7 +113,7 @@ class MigrateController extends Controller ...@@ -113,7 +113,7 @@ class MigrateController extends Controller
if (parent::beforeAction($action)) { if (parent::beforeAction($action)) {
$path = Yii::getAlias($this->migrationPath); $path = Yii::getAlias($this->migrationPath);
if (!is_dir($path)) { if (!is_dir($path)) {
throw new Exception("The migration directory \"{$this->migrationPath}\" does not exist."); throw new Exception("The migration directory \"{$path}\" does not exist.");
} }
$this->migrationPath = $path; $this->migrationPath = $path;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment