Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show friendly exception on run ./vendor/bin/yii-db-migration without configuration file #255

Open
vjik opened this issue Feb 24, 2024 · 0 comments
Labels
status:ready for adoption Feel free to implement this issue. type:enhancement Enhancement

Comments

@vjik
Copy link
Member

vjik commented Feb 24, 2024

Currently show warning and fatal error:

Warning: require(/.../yii-db-migration.php): Failed to open stream: No such file or directory in /.../vendor/yiisoft/db-migration/bin/yii-db-migration on line 43

Call Stack:
    0.0003     516288   1. {main}() /.../vendor/bin/yii-db-migration:0
    0.0005     516960   2. include('/.../vendor/yiisoft/db-migration/bin/yii-db-migration') /.../vendor/bin/yii-db-migration:119

Fatal error: Uncaught Error: Failed opening required '/.../yii-db-migration.php' (include_path='.:/usr/local/lib/php') in /.../vendor/yiisoft/db-migration/bin/yii-db-migration on line 43
@samdark samdark added type:enhancement Enhancement status:ready for adoption Feel free to implement this issue. labels Feb 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:ready for adoption Feel free to implement this issue. type:enhancement Enhancement
Projects
None yet
Development

No branches or pull requests

2 participants