Update documentation for registry lock.

Also, make rewrite the return error message using better grammar
This commit is contained in:
Maciej Szlosarczyk 2018-08-17 16:00:43 +03:00
parent 0c7c8eb480
commit 97617764fb
No known key found for this signature in database
GPG key ID: 41D62D42D3B0D765
3 changed files with 4 additions and 4 deletions

View file

@ -17,7 +17,7 @@ module Api
if @domain.remove_registry_lock
render json: @domain
else
render json: { errors: [{ base: ['Domain not locked'] }] },
render json: { errors: [{ base: ['Domain is not locked'] }] },
status: :unprocessable_entity
end
end