提交 bbd9cbd3 编写于 作者: I isidor

uri: improve error message when can not convert to file uri.

Fixes #667
上级 d836c488
......@@ -174,7 +174,7 @@ export default class URI {
var ret = URI._parse(path);
if (ret.scheme || ret.fragment || ret.query) {
throw new Error();
throw new Error(`Path ${ 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.
先完成此消息的编辑!
想要评论请 注册