Commit febdd85b by Qiang Xue

Merge pull request #1942 from creocoder/migrate-command-fix

Migration command show correct directory path while it not exist
parents 53e249d2 3de7bce6
......@@ -113,7 +113,7 @@ class MigrateController extends Controller
if (parent::beforeAction($action)) {
$path = Yii::getAlias($this->migrationPath);
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;
......
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