diff --git a/server/app/files.go b/server/app/files.go index 161238fc..1d203340 100644 --- a/server/app/files.go +++ b/server/app/files.go @@ -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)