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

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
Christoph Wurst 2023-08-07 14:52:21 +02:00 committed by Arthur Schiwon
parent bc1da2fa54
commit 5f0ada879e

View file

@ -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;