mirror of
https://github.com/danbee/mpd-client
synced 2025-03-04 08:39:09 +00:00
Return unprocessable entity when trying to change volume wrongly
This commit is contained in:
parent
183c6279cd
commit
83a7e0eac9
@ -123,7 +123,9 @@ module MPDClient
|
|||||||
|
|
||||||
put '/control/volume/:value' do
|
put '/control/volume/:value' do
|
||||||
content_type 'application/json'
|
content_type 'application/json'
|
||||||
Control.volume(params[:value])
|
unless Control.volume(params[:value].to_i)
|
||||||
|
status 422
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user