Skip to content

Commit edf6301

Browse files
committed
More consistent index name in the error message
1 parent 4c1a131 commit edf6301

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/elasticsearch/index/IndexNotFoundException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public IndexNotFoundException(Index index) {
4646
}
4747

4848
public IndexNotFoundException(Index index, Throwable cause) {
49-
super("no such index " + index.toString(), cause);
49+
super("no such index [" + index.getName() + "]", cause);
5050
setIndex(index);
5151
}
5252

0 commit comments

Comments
 (0)