Skip to content

Commit b1916b2

Browse files
committed
Update registers_controller.rb
1 parent 47c5b12 commit b1916b2

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

app/controllers/registers_controller.rb

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,16 @@ def snooze_curation
421421

422422
# POST /registers/r:abc/recheck_pdf_files
423423
def recheck_pdf_files
424-
@register.check_pdf_files if @register.notified?
424+
if @register.notified?
425+
begin
426+
@register.check_pdf_files
427+
flash[:notice] = 'Attached files successfully evaluated'
428+
rescue => e
429+
flash[:alert] = e.to_s
430+
end
431+
else
432+
flash[:alert] = 'The list has not been notified'
433+
end
425434
redirect_back(fallback_location: @register)
426435
end
427436

0 commit comments

Comments
 (0)