Skip to content

Commit fe106d7

Browse files
generatedunixname2655515034848748meta-codesync[bot]
authored andcommitted
fbcode/openbmc/openbmc/tools/flashy/checks_and_remediations/common/01_alert_upgrade_mode.go
Reviewed By: echistyakov Differential Revision: D94892447 fbshipit-source-id: 66c3f6a4e1c71acf3e01bbb2823761097bae678a
1 parent 1969975 commit fe106d7

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

tools/flashy/checks_and_remediations/common/01_alert_upgrade_mode.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ import (
2727
"github.com/facebook/openbmc/tools/flashy/lib/fileutils"
2828
"github.com/facebook/openbmc/tools/flashy/lib/step"
2929
"github.com/facebook/openbmc/tools/flashy/lib/utils"
30-
"github.com/pkg/errors"
3130
)
3231

3332
// const PS1Line = `
@@ -79,7 +78,7 @@ var wallAlert = func() error {
7978
wallCmd := []string{"bash", "-c", fmt.Sprintf("echo -en \"%v\" | wall", escapedMsg)}
8079
_, err, _, _ := utils.RunCommand(wallCmd, 30*time.Second)
8180
if err != nil {
82-
return errors.Errorf("Warning: `wall` alert failed: %v", err)
81+
return fmt.Errorf("Warning: `wall` alert failed: %v", err)
8382
}
8483
return nil
8584
}
@@ -89,7 +88,7 @@ var updateMOTD = func() error {
8988
"/etc/motd", []byte(motdContents), 0644, 5*time.Second,
9089
)
9190
if err != nil {
92-
return errors.Errorf("Warning: MOTD update failed: %v", err)
91+
return fmt.Errorf("Warning: MOTD update failed: %v", err)
9392
}
9493
return nil
9594
}

0 commit comments

Comments
 (0)