summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2023-08-07 14:52:21 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2023-11-22 11:46:17 +0100
commit5f0ada879e496bef682b47c4725e9f8806d90dfd (patch)
treef542d27925c56fe7d3c0cc92a916da59f2f686aa /core
parentbc1da2fa54d842be18b4faddf40fb64cc61d2811 (diff)
downloadnextcloud-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')
-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;