mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 18:26:06 +02:00
Make returned API errors more consistent
This commit is contained in:
parent
de9b1517b0
commit
0798001725
2 changed files with 4 additions and 4 deletions
|
@ -31,7 +31,7 @@ module Api
|
|||
if @contact
|
||||
render json: @contact
|
||||
else
|
||||
render json: { errors: ['Contact not found'] }, status: :not_found
|
||||
render json: { errors: [{ base: ['Contact not found'] }] }, status: :not_found
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue