From 35705cc03aa661806b935af5c14fa1f054c76f52 Mon Sep 17 00:00:00 2001 From: xpetit <32063953+xpetit@users.noreply.github.com> Date: Thu, 17 Jun 2021 19:24:58 +0200 Subject: [PATCH] action => description --- sh/debian/ubuntu/system/usr/local/src/format/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sh/debian/ubuntu/system/usr/local/src/format/main.go b/sh/debian/ubuntu/system/usr/local/src/format/main.go index 90ccae296..114f5f32c 100644 --- a/sh/debian/ubuntu/system/usr/local/src/format/main.go +++ b/sh/debian/ubuntu/system/usr/local/src/format/main.go @@ -39,11 +39,11 @@ func renderTable(data [][]string) { } // run returns the output of the command -// In case of error, display the action intended, the command and the error -func run(action, name string, arg ...string) []byte { +// In case of error, display the description, the command and the error +func run(description, name string, arg ...string) []byte { b, err := exec.Command(name, arg...).CombinedOutput() if err != nil { - fmt.Println("Failed to", action) + fmt.Println("Failed to", description) fmt.Printf("%s %#v\n", name, arg) if _, ok := err.(*exec.ExitError); ok { fatalln(string(b))