[refs #733] change error message

This commit is contained in:
Alexander Machehin 2012-11-28 21:29:34 +06:00
parent b8e6903faa
commit efd2945508
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ class Api::V1::BuildListsController < Api::V1::BaseController
def render_json(action_name) def render_json(action_name)
res, message = if !@build_list.send "can_#{action_name}?" res, message = if !@build_list.send "can_#{action_name}?"
[false, "Incorrect action for current status"] [false, "Incorrect action for current build list"]
elsif @build_list.send(action_name) elsif @build_list.send(action_name)
[true, t("layout.build_lists.#{action_name}_success")] [true, t("layout.build_lists.#{action_name}_success")]
else else