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

sql2dbml does not return error codes #499

Open
pierresouchay opened this issue Jan 23, 2024 · 1 comment
Open

sql2dbml does not return error codes #499

pierresouchay opened this issue Jan 23, 2024 · 1 comment

Comments

@pierresouchay
Copy link
Contributor

When running in command line, sql2dbml does not return an error code if something bad happens.

What about returning an error code in such as case?

Would you consider a MR with such a feature?

@pierresouchay
Copy link
Contributor Author

@NQPhuc I can implement it if you want.

I propose the following:

by default, if something fails, return 0 unless --error-code-on-failure=42 in such a case 42 would be returned... OK with that?

So we are sure we don't break existing users (where errors are now silent)

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