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

Include path in assert error for cursors #472

Merged
merged 1 commit into from
Jan 15, 2020
Merged

Include path in assert error for cursors #472

merged 1 commit into from
Jan 15, 2020

Conversation

dazld
Copy link
Contributor

@dazld dazld commented Jan 3, 2020

Hopefully a fairly uncontroversial PR!

Including path can help track down which particular cursor is misbehaving, ie in a React Native project, I have the following error message:

image

This isn't particularly helpful, but when the path is included it becomes a lot easier to find which particular cursor is responsible for the assert failure.

src/reagent/ratom.cljs Outdated Show resolved Hide resolved
Including path helps track down which particular cursor is misbehaving.
@dazld
Copy link
Contributor Author

dazld commented Jan 6, 2020

@Deraen fixed your spot - I could expand the PR to look at other assert calls too if that's helpful.

@Deraen Deraen merged commit ced4a18 into reagent-project:master Jan 15, 2020
@dazld dazld deleted the patch-1 branch January 15, 2020 09:36
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

Successfully merging this pull request may close these issues.

None yet

2 participants