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

source/iofs silently ignores errors when parsing migrations #1012

Open
lillian-b opened this issue Dec 17, 2023 · 0 comments
Open

source/iofs silently ignores errors when parsing migrations #1012

lillian-b opened this issue Dec 17, 2023 · 0 comments

Comments

@lillian-b
Copy link

I made an error in setting up one of my migrations, and it was silently not being applied. I looked at the io/fs source and found this line:

m, err := source.DefaultParse(e.Name())
if err != nil {
continue
}

This should return an error rather than silently continuing, or the behaviour should be documented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant