From 5f0ada879e496bef682b47c4725e9f8806d90dfd Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Mon, 7 Aug 2023 14:52:21 +0200 Subject: [PATCH] fix(db): Print why the migration file could not be created Signed-off-by: Christoph Wurst --- core/Command/Db/Migrations/GenerateCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/Command/Db/Migrations/GenerateCommand.php b/core/Command/Db/Migrations/GenerateCommand.php index dc9eb267938..879844dd579 100644 --- a/core/Command/Db/Migrations/GenerateCommand.php +++ b/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; -- 2.39.5