We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 048c9f8 commit dd2b7bdCopy full SHA for dd2b7bd
pkg/fs/local.go
@@ -2,6 +2,7 @@ package fs
2
3
import (
4
"context"
5
+ "fmt"
6
"io"
7
"net/http"
8
"os"
@@ -37,7 +38,7 @@ func (l *Local) Open(name string) (http.File, error) {
37
38
func (l *Local) Delete(_ctx context.Context, name string) error {
39
path := filepath.Join(l.rootDir, name)
40
if err := os.Remove(path); err != nil {
- return err
41
+ return fmt.Errorf("failed to delete file %s: %w", path, err)
42
}
43
return nil
44
0 commit comments