Open
Description
Describe the bug
If a folder is invalid Grate "just" skip it and return a successful error code.
To Reproduce
Run dotnet grate --connectionstring "XXX" --folders thisFolderDoesnTExist --noninteractive
and see that print:
Initializing connections.
Running grate v1.4.0.0 against - antidote_tenant_catalog.
Looking in . for scripts to run.
================================================================================
Setup, Backup, Create/Restore/Drop
================================================================================
================================================================================
Grate Structure
================================================================================
================================================================================
Versioning
================================================================================
Migrating antidote_tenant_catalog from version 0.0.0.0 to 0.0.0.1.
Versioning antidote_tenant_catalog database with version 0.0.0.1.
================================================================================
Migration Scripts
================================================================================
Skipping './Server/Antidote.TenantCatalog.Database/Migrations/', ./Server/Antidote.TenantCatalog.Database/Migrations/ does not exist.
grate v1.4.0.0 has grated your database (antidote_tenant_catalog)! You are now at version 0.0.0.1. All changes and backups can be found at "/Users/mmangel/.local/share/grate/migrations/antidote_tenant_catalog/2023-01-10T16_30_09.5450510_01_00".
Expected behavior
A clear and concise description of what you expected to happen.
I think Grate should fail if an expected folder doesn't exist. It took me 30min to understand why I didn't have any tables created in my database even if Grave was saying all is fine.
It was both due to the fact that an invalid folder is not an error and that the output was green (tracked here #282)
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: macOS
- Version: 13.0.1 (22A400)