1
0
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:
Lee Machin 2013-12-11 12:54:55 +00:00
parent 183c6279cd
commit 83a7e0eac9

View File

@ -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