|
@@ -794,6 +794,13 @@ public class ResourceLocalizationService extends CompositeService
|
|
.getResource().getRequest(), e.getMessage()));
|
|
.getResource().getRequest(), e.getMessage()));
|
|
LOG.error("Local path for public localization is not found. "
|
|
LOG.error("Local path for public localization is not found. "
|
|
+ " May be disks failed.", e);
|
|
+ " May be disks failed.", e);
|
|
|
|
+ } catch (IllegalArgumentException ie) {
|
|
|
|
+ rsrc.unlock();
|
|
|
|
+ publicRsrc.handle(new ResourceFailedLocalizationEvent(request
|
|
|
|
+ .getResource().getRequest(), ie.getMessage()));
|
|
|
|
+ LOG.error("Local path for public localization is not found. "
|
|
|
|
+ + " Incorrect path. " + request.getResource().getRequest()
|
|
|
|
+ .getPath(), ie);
|
|
} catch (RejectedExecutionException re) {
|
|
} catch (RejectedExecutionException re) {
|
|
rsrc.unlock();
|
|
rsrc.unlock();
|
|
publicRsrc.handle(new ResourceFailedLocalizationEvent(request
|
|
publicRsrc.handle(new ResourceFailedLocalizationEvent(request
|
|
@@ -1015,6 +1022,9 @@ public class ResourceLocalizationService extends CompositeService
|
|
} catch (IOException e) {
|
|
} catch (IOException e) {
|
|
LOG.error("local path for PRIVATE localization could not be " +
|
|
LOG.error("local path for PRIVATE localization could not be " +
|
|
"found. Disks might have failed.", e);
|
|
"found. Disks might have failed.", e);
|
|
|
|
+ } catch (IllegalArgumentException e) {
|
|
|
|
+ LOG.error("Inorrect path for PRIVATE localization."
|
|
|
|
+ + next.getResource().getFile(), e);
|
|
} catch (URISyntaxException e) {
|
|
} catch (URISyntaxException e) {
|
|
//TODO fail? Already translated several times...
|
|
//TODO fail? Already translated several times...
|
|
}
|
|
}
|