Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
frontend: fix wrong success on not defined action
Motivation when modifying attributes using restful api `action` an error is occurring if not defined action is used. The return message is `success`, while an error message should be returned. example: curl -X POST -u admin:dickerelch -H "Accept: application/json" -H "Content-Type: application/json" http://localhost:3880/api/v1/namespace/public/teddst_label2.log -d '{"action" : "set-label", "labels" : [ "cat", "paris"] }' {"status":"success"}[marina@localhost dcache]$ Result An error message will be returned when wrong action is used: {"errors":[{"message":"No such acction set-label","status":"400"}] Target: master, 7.0, 6.1, 6.0, 5.2, Require-book: no Require-notes: yes Acked-by: Tigran Mkrtchyan Commit:
- Loading branch information