Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return error log when code generation fails; fixes #331; #338

Conversation

gavinying
Copy link
Contributor

Signed-off-by: Ying Shaodong [email protected]

} catch (Exception e) {
e.printStackTrace();
GenerationResultZip output = new GenerationResultZip(informationModel,codeGenerator.getServiceKey());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Eclipse Client Toolset should not have an error.log. Instead it would be ideal, if the message is outputted to the Eclipse Console using MessageDisplay.error()

@gavinying
Copy link
Contributor Author

I thought you want to make the generation process always be successful, so that the toolset and webservice would function the same way to users.
Just double check, so you want toolset to cancel the generation and print error message if error happens, right?

@aedelmann
Copy link
Contributor

The Web service returns an error.log file back to the user while the toolset prints out the error in the console and aborts the generation.

@aedelmann
Copy link
Contributor

Looks great. Thanks!

@aedelmann aedelmann merged commit 7e08240 into eclipse-vorto:development Jul 18, 2016
@aedelmann aedelmann deleted the feature/#331_return_error_log_when_generation_fails branch July 18, 2016 02:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants