mirror of
https://github.com/deavmi/birchwood
synced 2024-09-20 11:22:53 +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;
|
||||
}
|
||||
catch(SnoozeError e)
|
||||
catch(FatalException e)
|
||||
{
|
||||
// TODO: This should crash and end
|
||||
version(unittest)
|
||||
{
|
||||
writeln("wait() had an error");
|
||||
writeln("wait() had a FATAL error!!!!!!!!!!!");
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
@ -133,12 +133,12 @@ public final class SenderThread : Thread
|
||||
}
|
||||
continue;
|
||||
}
|
||||
catch(SnoozeError e)
|
||||
catch(FatalException e)
|
||||
{
|
||||
// TODO: This should crash and end
|
||||
version(unittest)
|
||||
{
|
||||
writeln("wait() had an error");
|
||||
writeln("wait() had a FATAL error!!!!!!!!!!!");
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user