This repository has been archived by the owner on Jan 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 882
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
checktool: Enhance return value with error codes
Currently the result of failed check is returned as 1, which causes the installer cannot read the failed reason exactly. * Use the error code as the return value of check tool - 0 means success - Positive values mean the failed check (returns 1 when the command line argument is invalid) - Negative values mean runtime fault * Support 11 system checks, each of which is indicated by a certain bit in the positive error code. The return value may be the bitwise combination of these failed status bits. Signed-off-by: Wenchao Wang <[email protected]>
- Loading branch information
Showing
4 changed files
with
86 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters