diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2023-08-07 14:52:21 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2023-11-22 11:46:17 +0100 |
commit | 5f0ada879e496bef682b47c4725e9f8806d90dfd (patch) | |
tree | f542d27925c56fe7d3c0cc92a916da59f2f686aa /core/Command | |
parent | bc1da2fa54d842be18b4faddf40fb64cc61d2811 (diff) | |
download | nextcloud-server-5f0ada879e496bef682b47c4725e9f8806d90dfd.tar.gz nextcloud-server-5f0ada879e496bef682b47c4725e9f8806d90dfd.zip |
fix(db): Print why the migration file could not be created
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'core/Command')
-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; |