DigitalCommons / land-explorer-front-end

React app for the Land Explorer front end
http://landexplorer.cc
GNU Affero General Public License v3.0
1 stars 0 forks source link

[Backsearch P1] Error handling in the FE for BE error #284

Closed lin-d-hop closed 19 hours ago

lin-d-hop commented 7 months ago

Description

Currently if the BE errors on back searching then the FE displays a message: 'No properties found'. This is inaccurate.

We need to be able to distinguish between 'no properties found' and 'we've experienced an error'.

If an error happens we want to display the message: We've experienced an error. Please try again.

Acceptance Criteria

If the PBS or BE return an error rather than a successful result, display the error message.