Move verbose

This commit is contained in:
spengreb 2019-10-08 20:15:15 +02:00
parent b544201186
commit 93e1dfb923

View file

@ -31,7 +31,7 @@ class VouchersController < ApplicationController
end
else
render json: "Voucher is not valid. Whitelisted: " + params[:voucher].in?(whitelist).to_s + ". Exists: " + Voucher.exists?(vouchee: params[:voucher]).to_s, status: :unprocessable_entity
render json: "Voucher is not valid. Whitelisted: " + params[:voucher].in?(whitelist).to_s + ". Exists: " + Voucher.exists?(vouchee: params[:voucher]).to_s + ". " + whitelist, status: :unprocessable_entity
end