Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
appinventor-sources
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
appinventor-sources
Commits
5ec68109
Commit
5ec68109
authored
Aug 04, 2012
by
halatmit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added more error logging to build server
parent
108f5f83
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
appinventor/buildserver/src/com/google/appinventor/buildserver/ProjectBuilder.java
...rc/com/google/appinventor/buildserver/ProjectBuilder.java
+11
-3
No files found.
appinventor/buildserver/src/com/google/appinventor/buildserver/ProjectBuilder.java
View file @
5ec68109
...
@@ -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
y
ail generation failed on.
* Return the name of the form that
Y
ail generation failed on.
*/
*/
String
getFormName
()
{
String
getFormName
()
{
return
formName
;
return
formName
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment