X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Ffanfix%2Flibrary%2FRemoteLibraryServer.java;h=c3933ebb276c65e171546109c59d6daa96df8501;hb=5db598bc6386aaabe69f2eed55b03625c72c236b;hp=ada467311d1e2d77801b6a7df379ee0272dad3f4;hpb=c1b31971129284c53f79dd3ba38f32ec084d06cb;p=fanfix.git diff --git a/src/be/nikiroo/fanfix/library/RemoteLibraryServer.java b/src/be/nikiroo/fanfix/library/RemoteLibraryServer.java index ada4673..c3933eb 100644 --- a/src/be/nikiroo/fanfix/library/RemoteLibraryServer.java +++ b/src/be/nikiroo/fanfix/library/RemoteLibraryServer.java @@ -145,11 +145,10 @@ public class RemoteLibraryServer extends ServerObject { System.out.println(trace); Object rep = null; - Exception oops = null; try { rep = doRequest(action, command, args, rw, whitelist); - } catch (Exception e) { - oops = e; + } catch (IOException e) { + rep = new RemoteLibraryException(e); } commands.put(id, command); @@ -157,10 +156,6 @@ public class RemoteLibraryServer extends ServerObject { rws.put(id, rw); times.put(id, (new Date().getTime() - start)); - if (oops != null) { - throw oops; - } - return rep; }