p3(data.go): better error message

This commit is contained in:
leo 2023-03-15 20:17:25 +01:00
parent 1befb1a5fd
commit ac4a8551d2
Signed by: wanderer
SSH Key Fingerprint: SHA256:Dp8+iwKHSlrMEHzE3bJnPng70I7LEsa3IJXRH/U+idQ

@ -196,7 +196,7 @@ func saveStuff(
reread, err := ioutil.ReadFile(prefix + k + suffix) reread, err := ioutil.ReadFile(prefix + k + suffix)
if err != nil { if err != nil {
if errors.Is(err, fs.ErrNotExist) { if errors.Is(err, fs.ErrNotExist) {
log.Println("haha") log.Println("apparently this file has not been written yet")
} }
return err return err