1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-23 16:28:51 -05:00

* better error reporting when downloading subtitles

This commit is contained in:
Reinhard Pointner 2015-01-10 08:42:11 +00:00
parent 6979732bd4
commit 2845cd1c01

View File

@ -442,14 +442,14 @@ class SubtitleAutoMatchDialog extends JDialog {
setIcon(ResourceManager.getIcon("dialog.cancel"));
setToolTipText(null);
} else {
setText(subtitleBean.getText());
if (subtitleBean.getError() == null) {
setText(subtitleBean.getText());
setIcon(subtitleBean.getIcon());
setToolTipText(null);
} else {
setText(String.format("%s (%s)", subtitleBean.getText(), subtitleBean.getError().getMessage()));
setIcon(ResourceManager.getIcon("status.warning"));
setToolTipText(subtitleBean.getError().getMessage());
setToolTipText(subtitleBean.getError().toString());
}
if (!isSelected) {