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

[Command line export] return 0 exit code when export is finished with warnings. #62907

Merged
merged 1 commit into from
Jul 25, 2022

Conversation

bruvzg
Copy link
Member

@bruvzg bruvzg commented Jul 11, 2022

Changes command line export exit code to EXIT_SUCCESS and ERR_PRINT to WARN_PRINT if non-critical errors were encountered during the export process (e.g., rcedit was unable to change executable icon.)

Bugsquad edit: Fixes #62874.

@bruvzg bruvzg added enhancement topic:editor usability cherrypick:3.x Considered for cherry-picking into a future 3.x release topic:export labels Jul 11, 2022
@bruvzg bruvzg added this to the 4.0 milestone Jul 11, 2022
@@ -923,6 +923,7 @@ void EditorNode::_fs_changed() {

// FIXME: Move this to a cleaner location, it's hacky to do this in _fs_changed.
String export_error;
Error err = OK;
Copy link
Member

Choose a reason for hiding this comment

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

Might be less error prone to add String export_warning; and rely on this to print errors and/or warnings and set the exit code accordingly?

@akien-mga akien-mga merged commit d995f12 into godotengine:master Jul 25, 2022
@akien-mga
Copy link
Member

Thanks!

@akien-mga
Copy link
Member

Cherry-picked for 3.5.

@akien-mga akien-mga removed the cherrypick:3.x Considered for cherry-picking into a future 3.x release label Jul 25, 2022
@bruvzg bruvzg deleted the warn_exit_code branch November 21, 2022 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Windows Rcedit error returns exit 1 and interrupts Github Actions Workflow
2 participants