bridgev2/provisioning: include underlying error in failed to wait response

This commit is contained in:
Nick Mills-Barrett 2025-05-28 18:23:51 +01:00
commit 3f23c300ca
No known key found for this signature in database
GPG key ID: 31F23F2CF354937B

View file

@ -501,7 +501,7 @@ func (prov *ProvisioningAPI) PostLoginWait(w http.ResponseWriter, r *http.Reques
if err != nil {
zerolog.Ctx(r.Context()).Err(err).Msg("Failed to wait")
jsonResponse(w, http.StatusInternalServerError, &mautrix.RespError{
Err: "Failed to wait",
Err: "Failed to wait: " + err.Error(),
ErrCode: "M_UNKNOWN",
})
return