Another snark refactoring bug, log tweaks

This commit is contained in:
zzz
2013-10-08 01:17:36 +00:00
parent 38cef14cf4
commit 8872437caf
3 changed files with 4 additions and 4 deletions

View File

@ -902,7 +902,7 @@ public class SnarkManager implements CompleteListener {
filename = sfile.getCanonicalPath();
} catch (IOException ioe) {
_log.error("Unable to add the torrent " + filename, ioe);
addMessage(_("Error: Could not add the torrent {0}", filename) + ": " + ioe.getMessage());
addMessage(_("Error: Could not add the torrent {0}", filename) + ": " + ioe);
return;
}
File dataDir = getDataDir();
@ -1677,7 +1677,7 @@ public class SnarkManager implements CompleteListener {
// don't let one bad torrent kill the whole loop
addTorrent(name, !shouldAutoStart());
} catch (Exception e) {
addMessage(_("Error: Could not add the torrent {0}", name) + ": " + e.getMessage());
addMessage(_("Error: Could not add the torrent {0}", name) + ": " + e);
_log.error("Unable to add the torrent " + name, e);
}
}