提交 5f4102f4 编写于 作者: I isidor

uri: can not throw an error with a path due to privacy issues.

上级 ca49e38e
......@@ -174,7 +174,7 @@ export default class URI {
var ret = URI._parse(path);
if (ret.scheme || ret.fragment || ret.query) {
throw new Error(`Path ${ path } contains a scheme, fragment or a query. Can not convert it to a file uri.`);
throw new Error('Path contains a scheme, fragment or a query. Can not convert it to a file uri.');
}
ret = ret.with('file', undefined,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册