Skip to content

Commit aa3d84e

Browse files
generatedunixname2655515034848748meta-codesync[bot]
authored andcommitted
fbcode/openbmc/openbmc/tools/flashy/checks_and_remediations/common/15_disable_hang_panic.go
Reviewed By: echistyakov Differential Revision: D92814194 fbshipit-source-id: 8bebb3497f35ab10245e35646bb3f8d630ecc0ee
1 parent 0fa59e0 commit aa3d84e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tools/flashy/checks_and_remediations/common/15_disable_hang_panic.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,14 @@
2020
package common
2121

2222
import (
23+
"errors"
24+
"fmt"
2325
"log"
2426
"os"
2527
"time"
2628

2729
"github.com/facebook/openbmc/tools/flashy/lib/fileutils"
2830
"github.com/facebook/openbmc/tools/flashy/lib/step"
29-
"github.com/pkg/errors"
3031
)
3132

3233
func init() {
@@ -45,7 +46,7 @@ func disableHangPanic(stepParams step.StepParams) step.StepExitError {
4546
disableHangPanicFilePath, []byte("0"), 0644, 30*time.Second,
4647
)
4748
if err != nil {
48-
errMsg := errors.Errorf("Failed to write to hang_task_panic file '%v': %v", disableHangPanicFilePath, err)
49+
errMsg := fmt.Errorf("Failed to write to hang_task_panic file '%v': %v", disableHangPanicFilePath, err)
4950
return step.ExitSafeToReboot{Err: errMsg}
5051
}
5152
return nil

0 commit comments

Comments
 (0)