mirror of
https://github.com/deavmi/birchwood
synced 2024-09-20 13:43:19 +02:00
Receiver
- Catch more specific exception, `FatalException` rather than `SnoozeError` - Adjusted error message printed out in unittest-builds on occurence of such an exception Sender - Catch more specific exception, `FatalException` rather than `SnoozeError` - Adjusted error message printed out in unittest-builds on occurence of such an exception
This commit is contained in:
parent
f6069ed254
commit
dc5d0f9f4a
@ -143,12 +143,12 @@ public final class ReceiverThread : Thread
|
|||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
catch(SnoozeError e)
|
catch(FatalException e)
|
||||||
{
|
{
|
||||||
// TODO: This should crash and end
|
// TODO: This should crash and end
|
||||||
version(unittest)
|
version(unittest)
|
||||||
{
|
{
|
||||||
writeln("wait() had an error");
|
writeln("wait() had a FATAL error!!!!!!!!!!!");
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -133,12 +133,12 @@ public final class SenderThread : Thread
|
|||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
catch(SnoozeError e)
|
catch(FatalException e)
|
||||||
{
|
{
|
||||||
// TODO: This should crash and end
|
// TODO: This should crash and end
|
||||||
version(unittest)
|
version(unittest)
|
||||||
{
|
{
|
||||||
writeln("wait() had an error");
|
writeln("wait() had a FATAL error!!!!!!!!!!!");
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user