mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-25 17:10:27 +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();
|
ErrorEvent.fromThrowable(toReport).build().handle();
|
||||||
} catch (SocketException ex) {
|
} catch (SocketException ex) {
|
||||||
// Do not send error and omit it, as this might happen often
|
// 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
|
// This is expected if you kill a running xpipe CLI process
|
||||||
ErrorEvent.fromThrowable(ex).omitted(true).build().handle();
|
// 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) {
|
} catch (Throwable ex) {
|
||||||
TrackEvent.trace("Sending internal server error to #" + id + ": " + ex.getMessage());
|
TrackEvent.trace("Sending internal server error to #" + id + ": " + ex.getMessage());
|
||||||
Deobfuscator.deobfuscate(ex);
|
Deobfuscator.deobfuscate(ex);
|
||||||
|
|
Loading…
Reference in a new issue