From e19ff518ea6273bb4454fdbb20f0264476957274 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Sun, 11 Jun 2017 12:51:34 +0300 Subject: [PATCH] Humanize lockdir error message --- src/cypherpunks.ru/nncp/humanizer.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cypherpunks.ru/nncp/humanizer.go b/src/cypherpunks.ru/nncp/humanizer.go index 49b715a..7abfcab 100644 --- a/src/cypherpunks.ru/nncp/humanizer.go +++ b/src/cypherpunks.ru/nncp/humanizer.go @@ -237,6 +237,8 @@ func (ctx *Ctx) Humanize(s string) string { if err, exists := sds["err"]; exists { msg += ": " + err } + case "lockdir": + msg = fmt.Sprintf("Acquire lock for %s: %s", sds["path"], sds["err"]) default: return s } -- 2.44.0