diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2023-11-22 14:52:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-22 14:52:39 +0100 |
commit | 1cd4d4e018687513fa6e14d3d1af5a88d18a4760 (patch) | |
tree | 92a5388cfd6215d278d65a6417411dddd4e15f03 | |
parent | 9c3321c524be0da20f614ee19c664c98e048955a (diff) | |
parent | 5f0ada879e496bef682b47c4725e9f8806d90dfd (diff) | |
download | nextcloud-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.php | 2 |
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; |