]> Cypherpunks.ru repositories - nncp.git/blobdiff - src/cypherpunks.ru/nncp/humanizer.go
Humanize lockdir error message
[nncp.git] / src / cypherpunks.ru / nncp / humanizer.go
index 49b715a1c91f6c7c118196b0bf7e948c0aac4a02..7abfcab0aec30113aa18d4f5a91fdef533037d4e 100644 (file)
@@ -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
        }