all repos — homestead @ a9f47f4e4ed3223e86dc1d5c3edd005b8d9ce589

Code for my website

refactor: return errors with stack traces, where appropriate

Alan Pearce
commit

a9f47f4e4ed3223e86dc1d5c3edd005b8d9ce589

parent

f17c0bd9ce8ad16b39c9c5ba80c917049e135bed

1 file changed, 2 insertions(+), 2 deletions(-)

changed files
M cmd/build/main.gocmd/build/main.go
@@ -59,13 +59,13 @@ panic("could not create storage: " + err.Error())
} case "sqlite": var stat os.FileInfo - stat, err = os.Stat(options.Destination) + stat, err = file.Stat(options.Destination) if err != nil && !errors.Is(err, os.ErrNotExist) { panic("could not stat destination: " + err.Error()) } switch { case stat == nil: - err = os.MkdirAll(options.Destination, 0o0755) + err := os.MkdirAll(options.Destination, 0o0755) if err != nil { panic("could not make directory: " + err.Error()) }