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

Emit a more informative error message if git is not installed at startup #454

Merged
merged 1 commit into from
Feb 2, 2024

Conversation

gkamat
Copy link
Collaborator

@gkamat gkamat commented Feb 1, 2024

Description

If git is not installed, the following error message is emitted, for instance, when a list workloads command is issued. (A similar message appears for other commands like execute-test as well).

ERROR] Cannot list. [Errno 2] No such file or directory: 'git'.

This PR changes the message to:

[ERROR] Cannot list. Error invoking 'git', please install (or re-install).

The latter message had been added in change 0xd1eba717, but was not active during the initial clone of the workloads repository.

Testing

Ran the unit tests and integ tests. Had to update some of the existing tests, since the probe behavior is hardcoded.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@IanHoang IanHoang merged commit bd8bdcc into opensearch-project:main Feb 2, 2024
8 checks passed
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.

2 participants