google-cloud-eclipse
google-cloud-eclipse copied to clipboard
Collecting error messages does not work for App Engine staging failure
I should have created this as a new issue back then: https://github.com/GoogleCloudPlatform/google-cloud-eclipse/pull/1219#discussion_r95827603
The same issue with #527 but for staging failure.
The cause: we look for the prefix ERROR:
in gcloud output and collect such lines as error messages, but staging failure error messages don't have the prefix.
To reproduce staging failure, change appengine-web.xml
to be a malformed XML. (You may need to turn off auto-build.)
Should this be raised elsewhere? Some errors, like an invalid runtime (e.g., <runtime>FOO</runtime>
) are properly prefixed and picked up.
Ah, XML validation errors are logged differently. But it should be impossible to deploy in such situations as our deploy handler refuses to run if there are any problems markers on the selected project.
I think the error in your screenshot is not from the staging phase, but after that. I see "Success." and the last output line of the staging saying that the staging result has been left in some directory.
Oops, good point!
~~Also, currently, the staging output is in black, while the deploy output is in red. That's one way to distinguish the two output.~~
UPDATE: this has been fixed, and now all output is in black.