Merge pull request #39739 from nextcloud/fix/db/print-migration-generation-error

fix(db): Print why the migration file could not be created
This commit is contained in:
Arthur Schiwon 2023-11-22 14:52:39 +01:00 committed by GitHub
commit 1cd4d4e018
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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;