mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-21 23:20:23 +00:00
Expect socket exceptions now
This commit is contained in:
parent
4ff0d59dba
commit
9f55deb1e2
1 changed files with 3 additions and 2 deletions
|
@ -228,8 +228,9 @@ public class AppSocketServer {
|
|||
ErrorEvent.fromThrowable(toReport).build().handle();
|
||||
} catch (SocketException ex) {
|
||||
// Do not send error and omit it, as this might happen often
|
||||
// We do not send the error as the socket connection might be broken
|
||||
ErrorEvent.fromThrowable(ex).omitted(true).build().handle();
|
||||
// This is expected if you kill a running xpipe CLI process
|
||||
// We do not send the error to the client as the socket connection might be broken
|
||||
ErrorEvent.fromThrowable(ex).omitted(true).expected().build().handle();
|
||||
} catch (Throwable ex) {
|
||||
TrackEvent.trace("Sending internal server error to #" + id + ": " + ex.getMessage());
|
||||
Deobfuscator.deobfuscate(ex);
|
||||
|
|
Loading…
Reference in a new issue