From dc5d0f9f4a7066131296fed463003ef9644c9e65 Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Tue, 13 Jun 2023 20:30:10 +0200 Subject: [PATCH] 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 --- source/birchwood/client/receiver.d | 4 ++-- source/birchwood/client/sender.d | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source/birchwood/client/receiver.d b/source/birchwood/client/receiver.d index 43600a5..a847660 100644 --- a/source/birchwood/client/receiver.d +++ b/source/birchwood/client/receiver.d @@ -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; } diff --git a/source/birchwood/client/sender.d b/source/birchwood/client/sender.d index 4d4b632..df6481f 100644 --- a/source/birchwood/client/sender.d +++ b/source/birchwood/client/sender.d @@ -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; }