mirror of https://github.com/zlatinb/muwire
catch general exceptions because otherwise they get lost in the executor thread
parent
045859fe04
commit
e3f58f8f5a
|
@ -116,7 +116,7 @@ class PersisterFolderService extends BasePersisterService {
|
||||||
try {
|
try {
|
||||||
_load()
|
_load()
|
||||||
}
|
}
|
||||||
catch (IllegalArgumentException e) {
|
catch (Exception e) {
|
||||||
log.log(Level.WARNING, "couldn't load files", e)
|
log.log(Level.WARNING, "couldn't load files", e)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -62,7 +62,7 @@ class PersisterService extends BasePersisterService {
|
||||||
new File(location.absolutePath + ".bak")
|
new File(location.absolutePath + ".bak")
|
||||||
)
|
)
|
||||||
listener.publish(new PersisterDoneEvent())
|
listener.publish(new PersisterDoneEvent())
|
||||||
} catch (IllegalArgumentException e) {
|
} catch (Exception e) {
|
||||||
log.log(Level.WARNING, "couldn't load files",e)
|
log.log(Level.WARNING, "couldn't load files",e)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue