Skip to content
Snippets Groups Projects
Commit 99488bee authored by Goik Martin's avatar Goik Martin
Browse files

no Exception for precondition file, better error formatting

parent 72a3b392
Branches
No related tags found
No related merge requests found
......@@ -128,8 +128,10 @@ public class InstanceTest {
log.info("Precondition file '" + preconditionValidFilename.get() + "' is valid");
preconditionSucceeded = true;
} catch (final SAXException e) {
tmpPreconditionErrMsg = "Instance " + xmlInstance + ": Precondition file " + preconditionValidFilename.get() + " is invalid:" + e.getMessage();
log.info(tmpPreconditionErrMsg + ": " + e.getCause() + ":" + e.getMessage(), e);
tmpPreconditionErrMsg = "Instance " + xmlInstance +
":\n Precondition file »" + preconditionValidFilename.get() + "« is invalid:\n " +
e.getMessage() + "\n ";
log.info(tmpPreconditionErrMsg + ": " + e.getCause() + ":" + e.getMessage());
} catch (final IOException e) {
tmpPreconditionErrMsg = "Instance '" + xmlInstance + ": Precondition file '" + preconditionValidFilename.get() + "' cannot be read:" + e.getMessage();
log.info(tmpPreconditionErrMsg, e);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment