Skip to content

Commit

Permalink
return error is file not found for provided id
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajat-Dabade committed Oct 17, 2024
1 parent 6e6ad51 commit 5631bea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/app/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (a *App) GetFileInfo(filename string) (*mm_model.FileInfo, error) {
fileInfoID := getFileInfoID(parts[0])

if (fileInfoID) == "" {
return nil, nil
return nil, model.NewErrNotFound("No file found with name" + filename)
}

fileInfo, err := a.store.GetFileInfo(fileInfoID)
Expand Down

0 comments on commit 5631bea

Please sign in to comment.