mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 01:35:34 +08:00
Improve error handling for empty text extraction [SCI-10734]
This commit is contained in:
parent
4471ad40dc
commit
c5aaf46672
1 changed files with 2 additions and 0 deletions
|
@ -58,6 +58,8 @@ module ActiveStorage
|
|||
asset.update_estimated_size
|
||||
|
||||
Rails.logger.info "Asset #{asset.id}: file text successfully extracted"
|
||||
rescue ActiveRecord::RecordInvalid => e
|
||||
Rails.logger.error "Asset #{asset.id}: file text unsuccessfully extracted with error #{e.message}"
|
||||
end
|
||||
|
||||
{ text_extracted: true }
|
||||
|
|
Loading…
Reference in a new issue