Skip to content

Commit b0b13af

Browse files
committed
XWIKI-23492: Bad error message when copying a wiki to an id that already exists
* Fix checkstyle
1 parent a5c9620 commit b0b13af

File tree

1 file changed

+1
-1
lines changed
  • xwiki-platform-core/xwiki-platform-wiki/xwiki-platform-wiki-default/src/main/java/org/xwiki/wiki/internal/manager

1 file changed

+1
-1
lines changed

xwiki-platform-core/xwiki-platform-wiki/xwiki-platform-wiki-default/src/main/java/org/xwiki/wiki/internal/manager/DefaultWikiManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public WikiDescriptor copy(String fromWikiId, String newWikiId, String newWikiAl
119119
{
120120
WikiDescriptor newWiki;
121121
try {
122-
newWiki = create(newWikiId, newWikiAlias, failOnExist);
122+
newWiki = create(newWikiId, newWikiAlias, failOnExist);
123123
} catch (WikiManagerException e) {
124124
throw new WikiManagerException(String.format("Failed to create the new wiki [%s] when copying [%s].",
125125
newWikiId, fromWikiId), e);

0 commit comments

Comments
 (0)