X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=dep.go;h=0309effc42336c14993a573942b50ac705766075;hb=refs%2Ftags%2Fv1.7.0;hp=a64da9e41cb56980fe9219e61fd5d9fbfcd0555a;hpb=cd29a67e26ef05f0ffadd83448f09886edef4111;p=goredo.git diff --git a/dep.go b/dep.go index a64da9e..0309eff 100644 --- a/dep.go +++ b/dep.go @@ -130,7 +130,7 @@ func writeDeps(fdDep *os.File, tgts []string) (err error) { if _, errStat := os.Stat(tgt); errStat == nil { err = writeDep(fdDep, tgtDir, tgtRel) } else { - trace(CDebug, "ifchange: %s <- %s (unexisting)", fdDep.Name(), tgtRel) + trace(CDebug, "ifchange: %s <- %s (non-existing)", fdDep.Name(), tgtRel) fields := []recfile.Field{ {Name: "Type", Value: DepTypeIfchange}, {Name: "Target", Value: tgtRel}, @@ -159,7 +159,7 @@ func depRead(fdDep *os.File) (*DepInfo, error) { } depInfo := DepInfo{} if b := m["Build"]; b == "" { - return nil, errors.New(".dep missing Build:") + return nil, errors.New(".rec missing Build:") } else { depInfo.build = b } @@ -177,7 +177,7 @@ func depRead(fdDep *os.File) (*DepInfo, error) { case DepTypeIfcreate: dep := m["Target"] if dep == "" { - return nil, errors.New("invalid format of .dep") + return nil, errors.New("invalid format of .rec") } depInfo.ifcreates = append(depInfo.ifcreates, dep) case DepTypeIfchange: @@ -186,11 +186,11 @@ func depRead(fdDep *os.File) (*DepInfo, error) { case DepTypeStamp: hsh := m["Hash"] if hsh == "" { - return nil, errors.New("invalid format of .dep") + return nil, errors.New("invalid format of .rec") } depInfo.stamp = hsh default: - return nil, errors.New("invalid format of .dep") + return nil, errors.New("invalid format of .rec") } } return &depInfo, nil