refactor: return errors with stack traces, where appropriate
1 file changed, 2 insertions(+), 2 deletions(-)
changed files
M cmd/build/main.go → cmd/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()) }