diff options
author | KatolaZ <katolaz@freaknet.org> | 2017-08-10 01:06:56 +0100 |
---|---|---|
committer | KatolaZ <katolaz@freaknet.org> | 2017-08-10 01:06:56 +0100 |
commit | b0c7105a7f08389e012ce4882b38030df54cf474 (patch) | |
tree | 820c751e886efd7b4843643c391f4fed1a0b46b3 /commits.go | |
parent | 33b7c33ab447a0463e414c6cf8f9a2cd2d047a20 (diff) |
added more tests -- commits without scorsh-commands
Diffstat (limited to 'commits.go')
-rw-r--r-- | commits.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -146,7 +146,7 @@ func walkCommits(msg spoolMsg, w *worker) error { oldrevCommit, err := repo.LookupCommit(oldRevOid) if err != nil { fmt.Fprintf(os.Stderr, "Commit: %s does not exist\n", oldRev) - return SCORSHerr(errNoCommit) + return fmt.Errorf("%s: %s", SCORSHerr(errNoCommit), oldRev) } newRevOid, _ := git.NewOid(newRev) @@ -154,7 +154,7 @@ func walkCommits(msg spoolMsg, w *worker) error { newrevCommit, err := repo.LookupCommit(newRevOid) if err != nil { fmt.Fprintf(os.Stderr, "Commit: %s does not exist\n", newRev) - return SCORSHerr(errNoCommit) + return fmt.Errorf("%s: %s", SCORSHerr(errNoCommit), newRev) } curCommit := newrevCommit |