fix(db): Print why the migration file could not be created

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
pull/39739/head
Christoph Wurst 2 years ago committed by Arthur Schiwon
parent bc1da2fa54
commit 5f0ada879e
  1. 2
      core/Command/Db/Migrations/GenerateCommand.php

@ -235,7 +235,7 @@ class {{classname}} extends SimpleMigrationStep {
$path = $dir . '/' . $className . '.php';
if (file_put_contents($path, $code) === false) {
throw new RuntimeException('Failed to generate new migration step.');
throw new RuntimeException('Failed to generate new migration step. Could not write to ' . $path);
}
return $path;

Loading…
Cancel
Save