]> Cypherpunks.ru repositories - nncp.git/commitdiff
Humanize lockdir error message
authorSergey Matveev <stargrave@stargrave.org>
Sun, 11 Jun 2017 09:51:34 +0000 (12:51 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sun, 11 Jun 2017 09:51:34 +0000 (12:51 +0300)
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
        }