Explorar el Código

Add error handling

Shun Miyazawa hace 1 año
padre
commit
846092759d
Se han modificado 1 ficheros con 3 adiciones y 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);
         });