rebuild fail
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Arnas Udovic 2023-06-29 15:18:50 +03:00
parent 509ae1968b
commit 5f195eec35

View file

@ -4,6 +4,7 @@ import (
"context"
"flag"
"fmt"
"git.sr.ht/~adnano/go-gemini"
"google.golang.org/grpc/credentials/insecure"
"io"
"log"
@ -13,7 +14,6 @@ import (
"strings"
"time"
"git.sr.ht/~adnano/go-gemini"
"git.sr.ht/~adnano/go-gemini/certificate"
"github.com/flosch/pongo2/v6"
"github.com/gorilla/feeds"
@ -98,6 +98,7 @@ func processRebuild(ctx context.Context, w gemini.ResponseWriter, r *gemini.Requ
}
log.Println("REBUILD: success")
} else {
log.Fatalln(rsp, err)
w.WriteHeader(gemini.StatusNotFound, "Out of space")
}
}