forked from External/mage
images: improved error logs on wrong image download in some use cases;
This commit is contained in:
parent
c3b57f1973
commit
92c5a65124
1 changed files with 2 additions and 3 deletions
|
|
@ -940,14 +940,13 @@ public class DownloadPicturesService extends DefaultBoundedRangeModel implements
|
|||
logger.warn(err);
|
||||
}
|
||||
}
|
||||
|
||||
} catch (AccessDeniedException e) {
|
||||
incErrorCount();
|
||||
logger.error("Can't access to files: " + card.getName() + "(" + card.getSet() + "). Try rebooting your system to remove the file lock.");
|
||||
} catch (Exception e) {
|
||||
incErrorCount();
|
||||
logger.error("Unknown error: " + e.getMessage(), e);
|
||||
} finally {
|
||||
String sampleUrl = (urls == null ? "null" : urls.getDownloadList().stream().findFirst().orElse(null));
|
||||
logger.error("Unknown error: " + e.getMessage() + ", sample url: " + sampleUrl, e);
|
||||
}
|
||||
|
||||
synchronized (sync) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue