aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2023-11-22 14:52:39 +0100
committerGitHub <noreply@github.com>2023-11-22 14:52:39 +0100
commit1cd4d4e018687513fa6e14d3d1af5a88d18a4760 (patch)
tree92a5388cfd6215d278d65a6417411dddd4e15f03
parent9c3321c524be0da20f614ee19c664c98e048955a (diff)
parent5f0ada879e496bef682b47c4725e9f8806d90dfd (diff)
downloadnextcloud-server-1cd4d4e018687513fa6e14d3d1af5a88d18a4760.tar.gz
nextcloud-server-1cd4d4e018687513fa6e14d3d1af5a88d18a4760.zip
Merge pull request #39739 from nextcloud/fix/db/print-migration-generation-error
fix(db): Print why the migration file could not be created
-rw-r--r--core/Command/Db/Migrations/GenerateCommand.php2
1 files changed, 1 insertions, 1 deletions
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;