Fix error message

This commit is contained in:
David Sanders 2020-11-24 20:17:01 -08:00 committed by GitHub
parent 3898e2ced3
commit 614a865d1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -345,7 +345,7 @@ export class URI implements UriComponents {
*/
static joinPath(uri: URI, ...pathFragment: string[]): URI {
if (!uri.path) {
throw new Error(`[UriError]: cannot call joinPaths on URI without path`);
throw new Error(`[UriError]: cannot call joinPath on URI without path`);
}
let newPath: string;
if (isWindows && uri.scheme === 'file') {