1
0
mirror of https://github.com/deavmi/birchwood synced 2024-09-20 13:43:19 +02:00
- 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:
Tristan B. Velloza Kildaire 2023-06-13 20:30:10 +02:00
parent f6069ed254
commit dc5d0f9f4a
2 changed files with 4 additions and 4 deletions

View File

@ -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;
} }

View File

@ -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;
} }