Commit 5ec68109 authored by halatmit's avatar halatmit

added more error logging to build server

parent 108f5f83
...@@ -127,6 +127,8 @@ public final class ProjectBuilder { ...@@ -127,6 +127,8 @@ public final class ProjectBuilder {
// Note that we're using a special result code here for the case of a Yail gen error. // Note that we're using a special result code here for the case of a Yail gen error.
return new Result(Result.YAIL_GENERATION_ERROR, "", e.getMessage(), e.getFormName()); return new Result(Result.YAIL_GENERATION_ERROR, "", e.getMessage(), e.getFormName());
} catch (Exception e) { } catch (Exception e) {
LOG.severe("Unknown exception signalled by genYailFilesIf Necessary");
e.printStackTrace();
return Result.createFailingResult("", "Unexpected problems generating YAIL."); return Result.createFailingResult("", "Unexpected problems generating YAIL.");
} }
...@@ -428,10 +430,16 @@ public final class ProjectBuilder { ...@@ -428,10 +430,16 @@ public final class ProjectBuilder {
String formName = PathUtil.trimOffExtension(PathUtil.basename(formPropertiesPath)); String formName = PathUtil.trimOffExtension(PathUtil.basename(formPropertiesPath));
if (exitValue == 1) { if (exitValue == 1) {
// Failed to generate yail for legitimate reasons, such as empty sockets. // Failed to generate yail for legitimate reasons, such as empty sockets.
throw new YailGenerationException("Unable to generate code for " + formName + ".", formName); throw new YailGenerationException("Unable to generate code for " + formName + "."
+ "\n -- err is " + err.toString()
+ "\n -- out is" + out.toString(),
formName);
} else { } else {
// Any other exit value is unexpected. // Any other exit value is unexpected.
throw new RuntimeException("YailGenerator for form " + formName + " exited with code " + exitValue); throw new RuntimeException("YailGenerator for form " + formName
+ " exited with code " + exitValue
+ "\n -- err is " + err.toString()
+ "\n -- out is" + out.toString());
} }
} }
} }
...@@ -446,7 +454,7 @@ public final class ProjectBuilder { ...@@ -446,7 +454,7 @@ public final class ProjectBuilder {
} }
/** /**
* Return the name of the form that yail generation failed on. * Return the name of the form that Yail generation failed on.
*/ */
String getFormName() { String getFormName() {
return formName; return formName;
......
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