Actions
Bug #4394
open
[Workbench] Make duplicate name error message more user-friendly
Status:
New
Priority:
Normal
Assigned To:
-
Category:
Workbench
Target version:
-
Start date:
11/03/2014
Due date:
% Done:
0%
Estimated time:
Story points:
0.5
Description
When I tried to use the same collection name twice, the error message (the uniqueness constraint violation exception from our PostgreSQL driver, rendered by X-Editable) looked like an internal error message that wasn't intended to be shown to an end user.
Proposed fix:- API server should provide an error message phrased in Arvados terms, suitable for displaying to users, like
errors.add :name, "must be unique within this project"
- Workbench should render errors like this without strange formatting -- e.g.,
"Error: name must be unique"
instead of<ArvadosApiClient> 422 {"name", "must be unique"}
Actions