Skip to content

[BUG] "Location not found" error message is too generic and provides no user guidance #212

Description

@Shrutii-Rai

Description

When an invalid location is entered in the Climate Risk Analyzer and "Analyze Climate Risk" is clicked, the error shown is just a plain red box with "Location not found." , no icon, no helpful guidance, no indication of which field is wrong.

To Reproduce

  1. Go to the Analysis page
  2. Enter an invalid combination (e.g. City: "shruti", State: "rai", Country: "india")
  3. Click "Analyze Climate Risk"
  4. See the generic red error box appear

Expected behavior

  • Error message should say: "We couldn't find this location. Please check your city, state, or country spelling."
  • A warning icon (⚠) should appear inside the error box
  • The City input field border should turn red to help guide the user

Screenshots

Image

Checklist

  • I have checked existing issues before creating this one

Additional context

This is a frontend-only fix , HTML/CSS/JS, no backend changes needed.

Metadata

Metadata

Labels

SSoC26bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions