X-Git-Url: http://git.nikiroo.be/?p=fanfix.git;a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Ffanfix%2Flibrary%2FRemoteLibraryServer.java;h=ada467311d1e2d77801b6a7df379ee0272dad3f4;hp=015fb7bf33c9c2beb79a81173b1f02f180f48db9;hb=c1b31971129284c53f79dd3ba38f32ec084d06cb;hpb=654e27bb90879440335f265b69e2a3a5fb085eb2 diff --git a/src/be/nikiroo/fanfix/library/RemoteLibraryServer.java b/src/be/nikiroo/fanfix/library/RemoteLibraryServer.java index 015fb7b..ada4673 100644 --- a/src/be/nikiroo/fanfix/library/RemoteLibraryServer.java +++ b/src/be/nikiroo/fanfix/library/RemoteLibraryServer.java @@ -144,13 +144,23 @@ public class RemoteLibraryServer extends ServerObject { } System.out.println(trace); - Object rep = doRequest(action, command, args, rw, whitelist); + Object rep = null; + Exception oops = null; + try { + rep = doRequest(action, command, args, rw, whitelist); + } catch (Exception e) { + oops = e; + } commands.put(id, command); wls.put(id, wl); rws.put(id, rw); times.put(id, (new Date().getTime() - start)); + if (oops != null) { + throw oops; + } + return rep; }