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

Throw more actionable "Conflict" exceptions? #146

Open
vemv opened this issue Aug 4, 2021 · 0 comments
Open

Throw more actionable "Conflict" exceptions? #146

vemv opened this issue Aug 4, 2021 · 0 comments

Comments

@vemv
Copy link

vemv commented Aug 4, 2021

Hi James,

while using ragtime I experienced the following error message:

Conflict! Expected 20210722233700-add-foo but 20210727114336-add-bar was applied.

...while ultimately I was able to solve the underlying cause, I found it a bit frustrating how concise the exception was.

One could say, a great exception message of the "precondition" kind explains why a precondition was expected, and a suggested action or diagnostic.

In particular:

  • why was certain migration "expected"? what controls ragtime's expectations?
    • i.e., I have no idea what's wrong here - file naming, some internal piece of state, the DB's state etc
  • what can I do to fix this?
    • perhaps a detailed diagnostic for the precise "red path" would be too much of an ask. But a generalized explanation or maybe a link to a specific passage of the documentation could help.

Cheers - V

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