diff --git a/nomad/variables_endpoint.go b/nomad/variables_endpoint.go index b68e82d81..2bfa430ab 100644 --- a/nomad/variables_endpoint.go +++ b/nomad/variables_endpoint.go @@ -169,6 +169,9 @@ func (sv *Variables) makeVariablesApplyResponse( } return &out, nil } + if eResp.IsError() { + return &out, eResp.Error + } // At this point, the response is necessarily a conflict. // Prime output from the encrypted responses metadata