Skip to content

Commit

Permalink
add note of RouteAlias must be unique
Browse files Browse the repository at this point in the history
  • Loading branch information
tepi committed Jan 15, 2025
1 parent 47842d4 commit fe6dbf0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -791,9 +791,9 @@ private RuntimeException ambigousTarget(Class<? extends Component> target) {

String messageFormat;
if (isParameter()) {
messageFormat = "Navigation targets must have unique routes, found navigation targets '%s' and '%s' with parameter have the same route.";
messageFormat = "Navigation targets (@Route and @RouteAlias values) must be unique, found navigation targets '%s' and '%s' with parameter having the same route.";
} else {
messageFormat = "Navigation targets must have unique routes, found navigation targets '%s' and '%s' with the same route.";
messageFormat = "Navigation targets (@Route and @RouteAlias values) must be unique, found navigation targets '%s' and '%s' with the same route.";
}

String message = String.format(messageFormat,
Expand Down

0 comments on commit fe6dbf0

Please sign in to comment.