We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47c5b12 commit b1916b2Copy full SHA for b1916b2
1 file changed
app/controllers/registers_controller.rb
@@ -421,7 +421,16 @@ def snooze_curation
421
422
# POST /registers/r:abc/recheck_pdf_files
423
def recheck_pdf_files
424
- @register.check_pdf_files if @register.notified?
+ 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
434
redirect_back(fallback_location: @register)
435
end
436
0 commit comments