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

just: Standardize error messages & make them red in color #240

Open
fiftydinar opened this issue Mar 28, 2024 · 0 comments
Open

just: Standardize error messages & make them red in color #240

fiftydinar opened this issue Mar 28, 2024 · 0 comments

Comments

@fiftydinar
Copy link
Contributor

Along with making them red in color, we can send those error message to stderror, in case if some just command enabled set -eou pipefail, so the command fails without need to specify exit 1.

I use this format for my just modifications:
echo "ERROR: This is the command which failed!" 1>&2

We can easily specify colors from sourced lib-ujust for this.

@fiftydinar fiftydinar changed the title Just: Standardize error messages & make them red in color just: Standardize error messages & make them red in color Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant