Commit 70833b70 authored by R.W.Majeed's avatar R.W.Majeed

don't include exception in response for unsupported template

parent b3925568
......@@ -107,7 +107,7 @@ public class DocumentRepository implements DocumentRepositoryPortType, ExternalI
return createErrorResponse(XDSConstants.ERR_REPO_ERROR, "Internal error", e);
} catch( UnsupportedTemplateException e ){
log.log(Level.WARNING, "Unsupported template", e);
return createErrorResponse(XDSConstants.ERR_DOC_INVALID_CONTENT, "Template not supportedr", e);
return createErrorResponse(XDSConstants.ERR_DOC_INVALID_CONTENT, "Template not supported: "+e.getTemplateId());
}
RegistryResponseType resp = new RegistryResponseType();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment