Skip to content

Commit fef1b4e

Browse files
authored
fix(channel-web): add details to user mapping error (#1803)
* fix(channel-web): add details to user mapping error * more info
1 parent 7df780c commit fef1b4e

File tree

1 file changed

+4
-1
lines changed
  • modules/channel-web/src/backend

1 file changed

+4
-1
lines changed

modules/channel-web/src/backend/db.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,10 @@ export default class WebchatDb {
120120
}
121121
}
122122
} catch (err) {
123-
this.bp.logger.forBot(botId).error('An error occurred while creating a user mapping.', err)
123+
this.bp.logger
124+
.forBot(botId)
125+
.attachError(err)
126+
.error(`An error occurred while creating a user mapping for user ${userId} and visitor ${visitorId}.`)
124127
}
125128

126129
return mapping

0 commit comments

Comments
 (0)