From 7a60174dd170c43e35aa2fb1dd0201512bc72d16 Mon Sep 17 00:00:00 2001 From: Radek Simko Date: Wed, 22 Jul 2015 12:49:05 +0200 Subject: [PATCH] Do not print errors via UiHook --- command/hook_ui.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/command/hook_ui.go b/command/hook_ui.go index c9543b3f6c..6a10ceefbb 100644 --- a/command/hook_ui.go +++ b/command/hook_ui.go @@ -140,7 +140,8 @@ func (h *UiHook) PostApply( } if applyerr != nil { - msg = fmt.Sprintf("Error: %s", applyerr) + // Errors are collected and printed in ApplyCommand, no need to duplicate + return terraform.HookActionContinue, nil } h.ui.Output(h.Colorize.Color(fmt.Sprintf(