mirror of
https://github.com/Zygo/bees.git
synced 2025-05-17 05:15:45 +02:00
test: fd: note when bad cast exception is expected
Signed-off-by: Zygo Blaxell <bees@furryterror.org>
This commit is contained in:
parent
e4c95d618a
commit
45afce72e3
@ -302,6 +302,7 @@ cast(const Fd &fd)
|
||||
{
|
||||
auto dp = dynamic_pointer_cast<T>(fd.operator->());
|
||||
if (!dp) {
|
||||
cerr << "expect bad cast exception: " << flush;
|
||||
throw bad_cast();
|
||||
}
|
||||
return dp;
|
||||
|
Loading…
x
Reference in New Issue
Block a user