Explorar o código

Add error handling

Shun Miyazawa hai 1 ano
pai
achega
846092759d
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      apps/app/src/server/service/attachment.js

+ 3 - 0
apps/app/src/server/service/attachment.js

@@ -65,6 +65,9 @@ class AttachmentService {
 
       // Do not await, run in background
       Promise.all(attachedHandlerPromises)
+        .catch((err) => {
+          logger.error('Error while executing attach handler', err);
+        })
         .finally(() => {
           disposeTmpFileCallback?.(file);
         });