Skip to content

Commit

Permalink
filename errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Lerner committed May 19, 2021
1 parent a658535 commit c0fb2ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/helpers/uploads_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ def self.no_files_found(extracted_path)
'racket', Rails.root.join('lib/assets/render-racket.rkt').to_s,
'-e', output_path,
'-o', "#{filename}ext",
f,
filename,
timeout: 30
)
if status.success? && !timed_out
Expand All @@ -346,7 +346,7 @@ def self.no_files_found(extracted_path)
Audit.log "Successfully processed #{filename} to #{output_path}"
return true
else
FileUtils.rm "#{ffilename}ext", force: true
FileUtils.rm "#{filename}ext", force: true
Audit.log <<~ERROR
================================
Problem processing #{filename}:
Expand Down

0 comments on commit c0fb2ce

Please sign in to comment.