Skip to content

Don't wrap real error in badmatch exception#577

Merged
eiri merged 1 commit into
masterfrom
fix-badmatch-in-get_view
Jun 5, 2017
Merged

Don't wrap real error in badmatch exception#577
eiri merged 1 commit into
masterfrom
fix-badmatch-in-get_view

Conversation

@eiri
Copy link
Copy Markdown
Member

@eiri eiri commented Jun 5, 2017

Overview

A change in #576 made any unexpected return from functions called in get_view_index_state/4 to be presented as badmatch and hide the real error.

This unwraps the badmatch and re-throw it as an original response.

Testing recommendations

A test suite make javascript suites=view_errorsjsshould pass.

Related Pull Requests

Bug introduced in #576

Checklist

  • Code is written and works correctly;
  • Changes are covered by tests;
  • Documentation reflects the changes;

@eiri eiri requested a review from davisp June 5, 2017 21:30
@eiri eiri added the bug label Jun 5, 2017
@wohali
Copy link
Copy Markdown
Member

wohali commented Jun 5, 2017

You fixed it! +1

@eiri eiri merged commit 50fc4ce into master Jun 5, 2017
@eiri eiri deleted the fix-badmatch-in-get_view branch June 5, 2017 22:02
nickva pushed a commit to nickva/couchdb that referenced this pull request Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants