From ee08365b0266302de2cd30ba39be107a5d70ada4 Mon Sep 17 00:00:00 2001 From: Olivier Ceyral Date: Wed, 8 Aug 2018 19:19:27 +0200 Subject: [PATCH] Fix error message --- template/interpolate/funcs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/interpolate/funcs.go b/template/interpolate/funcs.go index cbabe3433..798f5563a 100644 --- a/template/interpolate/funcs.go +++ b/template/interpolate/funcs.go @@ -180,7 +180,7 @@ func funcGenConsul(ctx *Context) interface{} { if !ctx.EnableEnv { // The error message doesn't have to be that detailed since // semantic checks should catch this. - return "", errors.New("env vars are not allowed here") + return "", errors.New("consul_key is not allowed here") } consulConfig := consulapi.DefaultConfig()