[refs #733] change error message
This commit is contained in:
parent
b8e6903faa
commit
efd2945508
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue