mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
Improved error message when METS Disseminator fails. If it fails, it should report on which DSpace Object it failed on (previously, it was nearly impossible to tell which object caused an error).
git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@5863 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -234,10 +234,15 @@ public abstract class AbstractMETSDisseminator
|
||||
}//end try
|
||||
catch (MetsException e)
|
||||
{
|
||||
String errorMsg = "Error exporting METS for DSpace Object, type="
|
||||
+ Constants.typeText[dso.getType()] + ", handle="
|
||||
+ dso.getHandle() + ", dbID="
|
||||
+ String.valueOf(dso.getID());
|
||||
|
||||
// We don't pass up a MetsException, so callers don't need to
|
||||
// know the details of the METS toolkit
|
||||
log.error("METS error: ",e);
|
||||
throw new PackageValidationException(e);
|
||||
log.error(errorMsg,e);
|
||||
throw new PackageValidationException(errorMsg, e);
|
||||
}
|
||||
finally
|
||||
{
|
||||
@@ -1412,6 +1417,7 @@ public abstract class AbstractMETSDisseminator
|
||||
* @return a string describing additional command-line options available
|
||||
* with this packager
|
||||
*/
|
||||
@Override
|
||||
public String getParameterHelp()
|
||||
{
|
||||
return "* manifestOnly=[boolean] " +
|
||||
|
Reference in New Issue
Block a user