Skip to content

Commit d6f28c8

Browse files
committed
fix(mu): better error handling for hb upload
1 parent 900e5b1 commit d6f28c8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

servers/mu/src/domain/clients/uploader.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,12 @@ function uploadDataItemWith ({ UPLOADER_URL, fetch, histogram, logger, HB_GRAPHQ
4848
Accept: 'application/json'
4949
},
5050
body
51-
}).then(() => res)
51+
})
52+
.then(() => res)
53+
.catch((err) => {
54+
logger.tap({ log: 'Error while communicating with HB uploader:' })(err)
55+
return res
56+
})
5257
)
5358
)
5459
.bimap(logger.tap({ log: 'Error while communicating with uploader:' }), identity)

0 commit comments

Comments
 (0)