Skip to content
Snippets Groups Projects
Commit 83634088 authored by buczekp's avatar buczekp
Browse files

[LMS-2172] fixed error message expectation

SVN: 20861
parent 8690bc25
No related branches found
No related tags found
No related merge requests found
...@@ -68,10 +68,10 @@ class DefaultFileBasedHierarchicalContent implements IHierarchicalContent ...@@ -68,10 +68,10 @@ class DefaultFileBasedHierarchicalContent implements IHierarchicalContent
public IHierarchicalContentNode getNode(String relativePath) public IHierarchicalContentNode getNode(String relativePath)
{ {
return asNode(new File(root, relativePath)); return asNode(new File(root, relativePath));
} }
private IHierarchicalContentNode asNode(File file) private IHierarchicalContentNode asNode(File file)
{ {
if (file.exists()) if (file.exists())
{ {
...@@ -94,7 +94,7 @@ class DefaultFileBasedHierarchicalContent implements IHierarchicalContent ...@@ -94,7 +94,7 @@ class DefaultFileBasedHierarchicalContent implements IHierarchicalContent
return containerNode.getChildNode(relativePath); return containerNode.getChildNode(relativePath);
} }
throw new IllegalArgumentException("Resource '" + FileUtilities.getRelativeFile(root, file) throw new IllegalArgumentException("Resource '" + FileUtilities.getRelativeFile(root, file)
+ "' doesn't exist"); + "' does not exist.");
} }
public List<IHierarchicalContentNode> listMatchingNodes(final String pattern) public List<IHierarchicalContentNode> listMatchingNodes(final String pattern)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment