-
Notifications
You must be signed in to change notification settings - Fork 237
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
Print error log to stderr output #4436
Conversation
Signed-off-by: Chong Gao <res_life@163.com>
build |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May I know why need to do this ?
echo | ||
echo "Check Failed: git revisions between shims are not equal" | ||
echo "Please check the revisions of each shim to see which one is inconsistent. Note, if building with Databricks those jars are built separately." | ||
echo >&2 "Check Failed: git revisions between shims are not equal" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing the original empty echo
, who will print a space line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a empty line for show, can be removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add more diagnostics to the log while we are at it? What are the git rev values that are different? What shim_version_path do they originate from?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, I'll update it.
The msg in stderr will be saved in the parameter ${build-parallel-worlds.checkRevisionsErrorMsg}. If not print to stderr, the parameter ${build-parallel-worlds.checkRevisionsErrorMsg} is empty. See the following:
|
I missed that in the review too, although I thought I saw this working. Did you test it? |
Yes, tested, it works. If versions are inconsistent , the error is
|
build |
1 similar comment
build |
Signed-off-by: Chong Gao res_life@163.com