Skip to content

Commit fe92e76

Browse files
generatedunixname2655515034848748meta-codesync[bot]
authored andcommitted
fbcode/openbmc/openbmc/tools/flashy/checks_and_remediations/common/11_drop_caches.go
Reviewed By: echistyakov Differential Revision: D94897728 fbshipit-source-id: 0569b644b7446b34d613b1c84ed3f8e856ffb10e
1 parent 9a3860f commit fe92e76

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/flashy/checks_and_remediations/common/11_drop_caches.go

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

2222
import (
23+
"fmt"
2324
"time"
2425

2526
"github.com/facebook/openbmc/tools/flashy/lib/fileutils"
2627
"github.com/facebook/openbmc/tools/flashy/lib/step"
27-
"github.com/pkg/errors"
2828
)
2929

3030
func init() {
@@ -40,7 +40,7 @@ func dropCaches(stepParams step.StepParams) step.StepExitError {
4040
dropCachesFilePath, []byte("3"), 0644, 30*time.Second,
4141
)
4242
if err != nil {
43-
errMsg := errors.Errorf("Failed to write to drop_caches file '%v': %v", dropCachesFilePath, err)
43+
errMsg := fmt.Errorf("Failed to write to drop_caches file '%v': %v", dropCachesFilePath, err)
4444
return step.ExitSafeToReboot{Err: errMsg}
4545
}
4646
return nil

0 commit comments

Comments
 (0)