Skip to content

Commit

Permalink
[FIX][E] #1093 Correctly display path of existing resource for error
Browse files Browse the repository at this point in the history
Adjusts the error message displayed in cases where the user chooses the
option to create a new directory as part of the resource negotiation
using values pointing to an already existing directory. The message used
the 'toString()' of the IContainer object which included a resource type
designation at the start of the path. To avoid confusion, the
OS-specific path of the resource is used instead.

Resolves #1093.
  • Loading branch information
tobous committed Nov 10, 2020
1 parent c917ad8 commit d788960
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ private IContainer getNewDirectoryHandle(
throw new IllegalInputException(
MessageFormat.format(
Messages.ReferencePointOptionResult_error_new_directory_already_exists,
containerToCreate));
containerToCreate.getFullPath().toOSString()));
}

return containerToCreate;
Expand Down

0 comments on commit d788960

Please sign in to comment.