Skip to content

Commit

Permalink
Update NOT_FOUND error to BAD_ALIAS error to be spec compliant. (#837)
Browse files Browse the repository at this point in the history
  • Loading branch information
clokep authored Mar 23, 2020
1 parent aaac4f5 commit 39f2455
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/30rooms/05aliases.pl
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
alias => $room_alias,
alt_aliases => [ $bad_alias ],
}
)->main::expect_matrix_error( 404, "M_NOT_FOUND" )
)->main::expect_matrix_error( 400, "M_BAD_ALIAS" )
->SyTest::pass_on_done( "m.room.canonical_alias rejects missing aliases" );
})->then( sub {
# Create an invalid alias name (starts with % instead of #).
Expand Down

0 comments on commit 39f2455

Please sign in to comment.