WebxCT / WebCT

Interactive Web UI for X-ray CT with Real-time Results
https://webct.io
8 stars 0 forks source link

Better Error System #52

Open WYVERN2742 opened 1 year ago

WYVERN2742 commented 1 year ago

Right now, the error system is a mess and does not cover all scenarios.

The error system should be redone alongside the validation system in order to clearly indicate to the user what has gone wrong. Validation should preemptively prevent any user-side inputs that will cause errors to the backend.

Some examples:

WYVERN2742 commented 2 months ago

"PUT /material/set HTTP/1.1" 200

Has no failure case, issues saving new materials are not propagated to frontend