]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(db): Print why the migration file could not be created 39739/head
authorChristoph Wurst <christoph@winzerhof-wurst.at>
Mon, 7 Aug 2023 12:52:21 +0000 (14:52 +0200)
committerArthur Schiwon <blizzz@arthur-schiwon.de>
Wed, 22 Nov 2023 10:46:17 +0000 (11:46 +0100)
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
core/Command/Db/Migrations/GenerateCommand.php

index dc9eb267938cf0c031ade9a9a80a6271c0cc3a82..879844dd579f072401ea223b011839aeb7c4d8ac 100644 (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;