aboutsummaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
Diffstat (limited to 'classes')
-rw-r--r--classes/Bowelyzer.sc13
1 files changed, 10 insertions, 3 deletions
diff --git a/classes/Bowelyzer.sc b/classes/Bowelyzer.sc
index be48cd0..349209c 100644
--- a/classes/Bowelyzer.sc
+++ b/classes/Bowelyzer.sc
@@ -477,9 +477,16 @@ Bowelyzer{
try{
this.forwardToNetAddress(name, amplitude, pitch, hasPitch, onsetDetect);
}{
- if(this.verbose,{error("Couldn't send to NetAddr: "++forwardAddr)});
- gui.pingForwardIndicator;
- }
+ |error|
+ switch(error.species.name)
+ { 'PrimitiveFailedError' }{
+ "".postln;
+ "Your network is down!".postln;
+ gui.pingForwardIndicator
+ }{
+ "Unknown exception".postln; error.throw;
+ }
+ };
});
});
});