SOLR-5895: JavaBinLoader hides IOExceptions

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1580290 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Shalin Shekhar Mangar 2014-03-22 19:29:04 +00:00
parent 25191820d3
commit 367e66b01f
2 changed files with 3 additions and 1 deletions

View File

@ -297,6 +297,8 @@ Bug Fixes
Includes a few minor bug fixes.
(Mark Miller)
* SOLR-5895: JavaBinLoader hides IOExceptions. (Mike Sokolov via shalin)
================== 4.7.0 ==================
Versions of Major Components

View File

@ -96,7 +96,7 @@ public class JavabinLoader extends ContentStreamLoader {
processor.processAdd(addCmd);
addCmd.clear();
} catch (IOException e) {
throw new SolrException(SolrException.ErrorCode.SERVER_ERROR, "ERROR adding document " + document);
throw new SolrException(SolrException.ErrorCode.SERVER_ERROR, "ERROR adding document " + document, e);
}
}
};