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 {
|
||||
_load()
|
||||
}
|
||||
catch (IllegalArgumentException e) {
|
||||
catch (Exception e) {
|
||||
log.log(Level.WARNING, "couldn't load files", e)
|
||||
}
|
||||
} else {
|
||||
|
|
|
@ -62,7 +62,7 @@ class PersisterService extends BasePersisterService {
|
|||
new File(location.absolutePath + ".bak")
|
||||
)
|
||||
listener.publish(new PersisterDoneEvent())
|
||||
} catch (IllegalArgumentException e) {
|
||||
} catch (Exception e) {
|
||||
log.log(Level.WARNING, "couldn't load files",e)
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue