Updated browse handler to include IDs in error messages.