equinor / flyt

Equinor Flyt (aka. VSM - Value Stream Mapping)
https://flyt.equinor.com
MIT License
4 stars 1 forks source link

To display a better error message #643

Open SayyareHamit opened 7 months ago

SayyareHamit commented 7 months ago

What happened

When a user deleted a existing process, and kept the duplicate one. Than search the deleted process, the page should display a better error message than display status code 404.

Steps to reproduce

  1. Click drop down list on a existing process and than click "Duplicate", then duplicate a process
  2. Delete the original process
  3. Search the original process, than the page display an error message with status code 404 image

Expected results

The deleted process page should display a better error message, For example, This page has been deleted.

Actual results

The deleted process page display a message with status code 404

nesadrian commented 1 week ago

We should send an error message from the backend when a users try to access a process that do not exists

HavardNot commented 4 days ago

As there are no suggestions made for the improved error message I implemented a simple statement:

$"Unable to find process with project id: {query.Id}")
HavardNot commented 4 days ago

Image