blob: 8c37e61325d991f67e9d89bc3b2bf8826c2f9d30 [file] [log] [blame]
// Copyright 2024 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package fix
import (
"os/exec"
"syscall"
)
// exit status 1 means there's a diff, but no other failure
func exitErrorMeansDiff(ee *exec.ExitError) bool {
ws, ok := ee.Sys().(syscall.WaitStatus)
return ok && ws.ExitStatus() == 1
}