mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 03:09:04 +01:00
Include pending contact id in error response
This commit is contained in:
@@ -117,8 +117,11 @@ constructor(
|
||||
return ctx.json(details)
|
||||
} catch (e: PendingContactExistsException) {
|
||||
ctx.status(FORBIDDEN_403)
|
||||
val details =
|
||||
mapOf("error" to "PENDING_EXISTS", "pendingContactAlias" to e.pendingContact.alias)
|
||||
val details = mapOf(
|
||||
"error" to "PENDING_EXISTS",
|
||||
"pendingContactId" to e.pendingContact.id.bytes,
|
||||
"pendingContactAlias" to e.pendingContact.alias
|
||||
)
|
||||
return ctx.json(details)
|
||||
}
|
||||
return ctx.json(pendingContact.output())
|
||||
|
||||
Reference in New Issue
Block a user