From 847cb02eb38821394a4f2a13f378764932bb8fc3 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 3 Sep 2014 21:31:34 -0700 Subject: [PATCH] packer: fuzzy search broken pipe too [GH-1314] --- CHANGELOG.md | 3 ++- packer/ui.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 881dcba65..ad4417fd8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,7 +22,8 @@ BUG FIXES: * core: nicer error message if an encrypted private key is used for SSH. [GH-1445] - * core: Fix crash that could happen with a well timed double Ctrl-C. [GH-1328] + * core: Fix crash that could happen with a well timed double Ctrl-C. + [GH-1328] [GH-1314] * builder/amazon-chroot: Can properly build HVM images now. [GH-1360] * builder/amazon-chroot: Fix crash in root device check. [GH-1360] * builder/amazon-instance: Fix deprecation warning for `ec2-bundle-vol` diff --git a/packer/ui.go b/packer/ui.go index 4b082b38e..afd21a488 100644 --- a/packer/ui.go +++ b/packer/ui.go @@ -289,7 +289,7 @@ func (u *MachineReadableUi) Machine(category string, args ...string) { _, err := fmt.Fprintf(u.Writer, "%d,%s,%s,%s\n", now.Unix(), target, category, argsString) if err != nil { - if err == syscall.EPIPE { + if err == syscall.EPIPE || strings.Contains(err.Error(), "broken pipe") { // Ignore epipe errors because that just means that the file // is probably closed or going to /dev/null or something. } else {