From b0c7105a7f08389e012ce4882b38030df54cf474 Mon Sep 17 00:00:00 2001 From: KatolaZ Date: Thu, 10 Aug 2017 01:06:56 +0100 Subject: added more tests -- commits without scorsh-commands --- commits.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'commits.go') 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 -- cgit v1.2.3