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

Respond with error code for unknown location #1027

Open
chimps-ahoy opened this issue Oct 25, 2024 · 0 comments
Open

Respond with error code for unknown location #1027

chimps-ahoy opened this issue Oct 25, 2024 · 0 comments

Comments

@chimps-ahoy
Copy link

Occassionally, I'll get the output 'Unknown location: please try....' with my normal location (which is good), but this suggestion also applies to when an actual invalid locations.

I propose when this occurs, wttr should reply with a 400+ error code. This would allow it to work very nicely in scripts with curl --fail.

thnaks,.

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