diff --git a/modules/markup/html.go b/modules/markup/html.go
index e6c4be64cd..2fe0e4eb43 100644
--- a/modules/markup/html.go
+++ b/modules/markup/html.go
@@ -664,6 +664,7 @@ func sha1CurrentPatternProcessor(ctx *postProcessCtx, node *html.Node) {
// Because of this, we check to make sure that a matched hash is actually
// a commit in the repository before making it a link.
if _, err := git.NewCommand("rev-parse", "--verify", hash).RunInDirBytes(ctx.metas["repoPath"]); err != nil {
+ log.Error("sha1CurrentPatternProcessor git rev-parse: %v", err)
return
}