From: Sergey Matveev Date: Sun, 11 Jun 2017 09:51:34 +0000 (+0300) Subject: Humanize lockdir error message X-Git-Tag: 0.9^2 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=e19ff518ea6273bb4454fdbb20f0264476957274;p=nncp.git Humanize lockdir error message --- 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 }