git://git.nikiroo.be
/
fanfix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remote: exceptions
[fanfix.git]
/
src
/
be
/
nikiroo
/
fanfix
/
library
/
RemoteLibraryServer.java
diff --git
a/src/be/nikiroo/fanfix/library/RemoteLibraryServer.java
b/src/be/nikiroo/fanfix/library/RemoteLibraryServer.java
index ada467311d1e2d77801b6a7df379ee0272dad3f4..c3933ebb276c65e171546109c59d6daa96df8501 100644
(file)
--- 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;
System.out.println(trace);
Object rep = null;
- Exception oops = null;
try {
rep = doRequest(action, command, args, rw, whitelist);
try {
rep = doRequest(action, command, args, rw, whitelist);
- } catch (Exception e) {
-
oops = e
;
+ } catch (
IO
Exception e) {
+
rep = new RemoteLibraryException(e)
;
}
commands.put(id, command);
}
commands.put(id, command);
@@
-157,10
+156,6
@@
public class RemoteLibraryServer extends ServerObject {
rws.put(id, rw);
times.put(id, (new Date().getTime() - start));
rws.put(id, rw);
times.put(id, (new Date().getTime() - start));
- if (oops != null) {
- throw oops;
- }
-
return rep;
}
return rep;
}