Closed briancoutinho closed 7 months ago
This pull request was exported from Phabricator. Differential Revision: D53891927
This pull request was exported from Phabricator. Differential Revision: D53891927
This pull request has been merged in facebookincubator/dynolog@7be9dd1d7efce86c94142f60e086eabea6f5ae65.
Summary: With -Werror,-Wexceptions the code like this one will generate a compile error like this one: error: 'tryPeekMsg' has a non-throwing exception specification but can still throw [-Werror,-Wexceptions]
After some internal discussion we decided to explicitly throw std::terminate() so intent is clear that this is a non recoverable error.
Differential Revision: D53891927