提交 4492b576 编写于 作者: F falko.menge

Improved exception message

上级 53f0ae56
......@@ -281,16 +281,17 @@ public class FileSystemConnector extends AbstractFileSystemBasedRepositoryConnec
}
private String getLocalPath(String path) {
if ("".equals(getBasePath())) {
String basePath = getBasePath();
if ("".equals(basePath)) {
// if root is configured in Unix ("/" without trailing slash = "")
return path;
} else if (path.startsWith(getBasePath())) {
path = path.replace(getBasePath(), "");
} else if (path.startsWith(basePath)) {
path = path.replace(basePath, "");
// replace windows style slashes
path = path.replace("\\", "/");
return path;
}
throw new RepositoryException("Unable to determine local path! ('" + path + "')");
throw new RepositoryException("Unable to determine local path! (path: '" + path + "', base path: '" + basePath + "')");
}
public String[] getConfigurationKeys() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册