Skip to content

Commit

Permalink
Try fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
4censord committed Oct 12, 2024
1 parent aaf29f1 commit ed86fa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/filesystem/filesystem.go
Original file line number Diff line number Diff line change
Expand Up @@ -543,8 +543,8 @@ func (fs *Filesystem) ListDirectory(p string) ([]Stat, error) {
if cleanedp != "" && f.Mode()&os.ModeNamedPipe == 0 {
file, err := fs.manager.Open(filepath.Join(cleaned, f.Name()))
if err != nil {
// panic(fmt.Errorf("Error SFTP Open: %s", err))
fmt.Println(err)
panic(fmt.Errorf("Error SFTP Open: %s", err))
}
m, _ = mimetype.DetectReader(file)
} else {
Expand Down

0 comments on commit ed86fa2

Please sign in to comment.