Let exception_wrapper::handle, when empty, show the right error message v2017.07.17.00
authorYedidya Feldblum <yfeldblum@fb.com>
Mon, 17 Jul 2017 05:07:08 +0000 (22:07 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 17 Jul 2017 05:19:45 +0000 (22:19 -0700)
commit6139d03f90efd6d59f524d773db856d171a265ac
tree83eb554db5ca07e0335511f94d58ea2c6d7ede8b
parentb15db0d83e11c8863ef6f57f1bac5dec846eaa00
Let exception_wrapper::handle, when empty, show the right error message

Summary:
[Folly] Let `exception_wrapper::handle`, when empty, show the right error message.

The error message currently says that `throw_exception` cannot be called on an empty `exception_wrapper`, but should say that `handle` cannot be called on an empty `exception_wrapper`.

Reviewed By: Orvid

Differential Revision: D5432380

fbshipit-source-id: ffa69c7675ee332e596e861e59ea273c39fc4717
folly/ExceptionWrapper-inl.h
folly/ExceptionWrapper.cpp
folly/ExceptionWrapper.h