aboutsummaryrefslogtreecommitdiff
path: root/clientapi/routing/sendevent_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'clientapi/routing/sendevent_test.go')
-rw-r--r--clientapi/routing/sendevent_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/clientapi/routing/sendevent_test.go b/clientapi/routing/sendevent_test.go
index 9cdd7535..00d19154 100644
--- a/clientapi/routing/sendevent_test.go
+++ b/clientapi/routing/sendevent_test.go
@@ -265,7 +265,7 @@ func createEvents(eventsJSON []string, roomVer gomatrixserverlib.RoomVersion) ([
for i, eventJSON := range eventsJSON {
pdu, evErr := roomVerImpl.NewEventFromTrustedJSON([]byte(eventJSON), false)
if evErr != nil {
- return nil, fmt.Errorf("failed to make event: %s", err.Error())
+ return nil, fmt.Errorf("failed to make event: %s", evErr.Error())
}
ev := types.HeaderedEvent{PDU: pdu}
events[i] = &ev