2
0
Shun Miyazawa 4 жил өмнө
parent
commit
465baad622

+ 3 - 1
src/server/routes/apiv3/users.js

@@ -364,8 +364,9 @@ module.exports = (crowi) => {
     try {
       afterWorkEmailList = await User.createUsersByInvitation(req.body.shapedEmailList);
     }
-    catch {
+    catch (err) {
       const msg = 'Failed to create user';
+      logger.error('Error', err);
       return res.apiv3Err(new ErrorV3(msg));
     }
 
@@ -378,6 +379,7 @@ module.exports = (crowi) => {
     }
     catch (err) {
       const msg = 'Failed to send email';
+      logger.error('Error', err);
       return res.apiv3Err(new ErrorV3(msg, afterWorkEmailList.createdUserList));
     }
   });