@@ -399,7 +399,7 @@ object FileUtils {
399399 val fileExecutionContext : ExecutionContext = Akka .system().dispatchers.lookup(" akka.actor.contexts.file-processing" )
400400 Future {
401401 try {
402- saveFile(file, f.ref.file, originalZipFile, clowderurl, apiKey, Some (user)). match {
402+ saveFile(file, f.ref.file, originalZipFile, clowderurl, apiKey, Some (user)) match {
403403 case Some (fixedfile) => {
404404 processFileBytes(fixedfile, f.ref.file, dataset)
405405 files.setStatus(fixedfile.id, FileStatus .UPLOADED )
@@ -411,7 +411,7 @@ object FileUtils {
411411 case None => Logger .error(s " File was not saved for ${file.id}, saveFile returned None " )
412412 }
413413 } catch {
414- case _ : Throwable => Logger .error(s " Error ( ${_ }), file was not saved for ${file.id}" )
414+ case e : Throwable => Logger .error(s " Error ( ${e }), file was not saved for ${file.id}" )
415415 } finally {
416416 f.ref.clean()
417417 }
@@ -461,17 +461,18 @@ object FileUtils {
461461 val fileExecutionContext : ExecutionContext = Akka .system().dispatchers.lookup(" akka.actor.contexts.file-processing" )
462462 Future {
463463 try {
464- saveURL(file, url, clowderurl, apiKey, Some (user)). match {
464+ saveURL(file, url, clowderurl, apiKey, Some (user)) match {
465465 case Some (fixedfile) => {
466466 processFileBytes(fixedfile, new java.io.File (path), fileds)
467467 files.setStatus(fixedfile.id, FileStatus .UPLOADED )
468468 processFile(fixedfile, clowderurl, index, flagsFromPrevious, showPreviews, fileds, runExtractors, apiKey)
469469 processDataset(file, fileds, folder, clowderurl, user, index, runExtractors, apiKey)
470470 files.setStatus(fixedfile.id, FileStatus .PROCESSED )
471471 }
472+ case None => Logger .error(s " File was not saved for ${file.id}, saveFile returned None " )
472473 }
473474 } catch {
474- case _ : Throwable => Logger .error(s " Error ( ${_ }), url was not saved for ${file.id}" )
475+ case e : Throwable => Logger .error(s " Error ( ${e }), file was not saved for ${file.id}" )
475476 }
476477 }(fileExecutionContext)
477478
0 commit comments