]> Cypherpunks.ru repositories - nncp.git/commitdiff
More descriptive error if spool does not exist
authorSergey Matveev <stargrave@stargrave.org>
Thu, 8 Jul 2021 10:06:08 +0000 (13:06 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Thu, 8 Jul 2021 10:06:08 +0000 (13:06 +0300)
src/ctx.go

index 63d1fc27353dac5682fee2ce24b0d0adde87fdf9..cb5c4282b868627e32691fe1e78aff346891bfa5 100644 (file)
@@ -138,7 +138,7 @@ func CtxFromCmdline(
 func (ctx *Ctx) IsEnoughSpace(want int64) bool {
        var s unix.Statfs_t
        if err := unix.Statfs(ctx.Spool, &s); err != nil {
-               log.Fatalln(err)
+               log.Fatalln("Can not stat spool:", err)
        }
        return int64(s.Bavail)*int64(s.Bsize) > want
 }