-
Notifications
You must be signed in to change notification settings - Fork 13
map error message+Diesel server status 500 #758
Comments
Thank you for reporting this problem! |
Just FYI if you look at the server response it should say what exactly went wrong. |
Yes thank you. The message is fine |
The user-facing error message is also not ideal. There should be a different status code for duplicated maps, so that we can be sure. (And don't need to say "maybe" it is a duplicated map). A better solution would be to directly validate the map name while typing, though. |
@tschawax do we need an extra endpoint to check for duplicate map names or can we have better usability by simply having a different return code for duplicate map names? |
I would go with the 409 Conflict code which is one of the mainly used ones for such "something already exists" scenarios. |
Ok,
I would prefer if the user would not get a toast but see a message directly at the problematic field, ideally while typing. |
Describe the Bug
When creating a map with a name that already exists the server responds with 500.
Steps to Reproduce the Problem
Expected Result
409 Conflict
Actual Result
500
PermaplanT version
0.3.0
Operating System
Windows 10
Browser
Opera
Versions of other relevant software/extensions
No response
Additional info/logs
The text was updated successfully, but these errors were encountered: