X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=run.go;h=dd41fbcc01927463f327d043321f828e22a9637f;hb=4cf1dbe4348f796f043a85a62761be52dd7ef859;hp=88adf66f2d9e4239b0596f82a9a0617f36d0438b;hpb=11bfb76bd12f2898c22b86dfeb3241607db5557a;p=goredo.git diff --git a/run.go b/run.go index 88adf66..dd41fbc 100644 --- a/run.go +++ b/run.go @@ -259,7 +259,7 @@ func runScript(tgtOrig string, errs chan error, forced, traced bool) error { var depInfo *DepInfo fdDep, err := os.Open(path.Join(redoDir, tgt+DepSuffix)) if err != nil { - if os.IsNotExist(err) { + if errors.Is(err, fs.ErrNotExist) { err = errors.New("was not built: no .rec") } goto Finish @@ -710,7 +710,7 @@ func runScript(tgtOrig string, errs chan error, forced, traced bool) error { return } tmpExists = true - } else if !os.IsNotExist(err) { + } else if !errors.Is(err, fs.ErrNotExist) { runErr.Err = ErrLine(err) errs <- runErr return