Skip to content

Commit

Permalink
Improved error message when deleting
Browse files Browse the repository at this point in the history
  • Loading branch information
svera committed Nov 3, 2024
1 parent 30584bb commit e7d5932
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/webserver/controller/document/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func (d *Controller) Delete(c *fiber.Ctx) error {
}

if err := d.idx.RemoveFile(fullPath); err != nil {
log.Println(err)
log.Printf("error removing file %s from index: %s\n", fullPath, err.Error())
return fiber.ErrInternalServerError
}

Expand Down

0 comments on commit e7d5932

Please sign in to comment.