summaryrefslogtreecommitdiff
path: root/commits.go
diff options
context:
space:
mode:
authorKatolaZ <katolaz@freaknet.org>2017-08-10 01:06:56 +0100
committerKatolaZ <katolaz@freaknet.org>2017-08-10 01:06:56 +0100
commitb0c7105a7f08389e012ce4882b38030df54cf474 (patch)
tree820c751e886efd7b4843643c391f4fed1a0b46b3 /commits.go
parent33b7c33ab447a0463e414c6cf8f9a2cd2d047a20 (diff)
added more tests -- commits without scorsh-commands
Diffstat (limited to 'commits.go')
-rw-r--r--commits.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/commits.go b/commits.go
index 7725b2f..8269e85 100644
--- a/commits.go
+++ b/commits.go
@@ -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