Moved warning for --russian earlier in init process

This commit is contained in:
Seednode 2023-09-09 21:00:58 -05:00
parent 8bbfd36a09
commit 26475ed491
2 changed files with 5 additions and 5 deletions

View File

@ -17,7 +17,7 @@ var (
) )
const ( const (
Version string = "0.59.0" Version string = "0.59.1"
) )
var ( var (

View File

@ -1098,6 +1098,10 @@ func ServePage(args []string) error {
return errors.New("no supported files found in provided paths") return errors.New("no supported files found in provided paths")
} }
if russian {
fmt.Printf("WARNING! Files *will* be deleted after serving!\n\n")
}
rand.New(rand.NewSource(time.Now().UnixNano())) rand.New(rand.NewSource(time.Now().UnixNano()))
mux := httprouter.New() mux := httprouter.New()
@ -1179,10 +1183,6 @@ func ServePage(args []string) error {
mux.HandlerFunc("GET", "/debug/pprof/trace", pprof.Trace) mux.HandlerFunc("GET", "/debug/pprof/trace", pprof.Trace)
} }
if russian {
fmt.Printf("WARNING! Files *will* be deleted after serving!\n\n")
}
if statistics { if statistics {
if statisticsFile != "" { if statisticsFile != "" {
stats.Import(statisticsFile) stats.Import(statisticsFile)