Skip to content

ohos / android: Fix missing error message for cli parsing errors#41072

Merged
jschwe merged 6 commits intoservo:mainfrom
Narfinger:ohos-early-error
Dec 8, 2025
Merged

ohos / android: Fix missing error message for cli parsing errors#41072
jschwe merged 6 commits intoservo:mainfrom
Narfinger:ohos-early-error

Conversation

@Narfinger
Copy link
Copy Markdown
Contributor

On ohos/android the early redirect from stderr/stdout is not yet setup when we parse commandline arguments.
This redirects these error on the standard logging facilities.

Testing: Tested on OHOS device with correct and incorrect arguments and on linux desktop.

@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Dec 5, 2025
Signed-off-by: Narfinger <[email protected]>
Signed-off-by: Narfinger <[email protected]>
Signed-off-by: Narfinger <[email protected]>
@jschwe jschwe changed the title OHOS: Add an early return for parsing errors on OHOS and Android ohos / android: Fix missing error message for cli parsing errors Dec 6, 2025
Signed-off-by: Narfinger <[email protected]>
Copy link
Copy Markdown
Member

@jschwe jschwe left a comment

Choose a reason for hiding this comment

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

LGTM, just left a final comment / nit

@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Dec 8, 2025
Co-authored-by: Jonathan Schwender <[email protected]>
Signed-off-by: Narfinger <[email protected]>
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Dec 8, 2025
@jschwe jschwe added this pull request to the merge queue Dec 8, 2025
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Dec 8, 2025
Merged via the queue into servo:main with commit 9fe6ac0 Dec 8, 2025
32 checks passed
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Dec 8, 2025
@Narfinger Narfinger deleted the ohos-early-error branch December 8, 2025 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-awaiting-review There is new code that needs to be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants