remove unwanted char
This commit is contained in:
parent
477b1399ca
commit
b4c4754008
@ -41,10 +41,10 @@ export function resolveAsset(name: string): string {
|
||||
// FIXME: Take into account some ASSETS environment variable?
|
||||
assetPath = path.resolve(path.join(d, "..", "assets", name));
|
||||
} else {
|
||||
throw Error("Can't resolve asset (unknown )");
|
||||
throw Error("Can't resolve asset (unknown)");
|
||||
}
|
||||
if (!fs.existsSync(assetPath)) {
|
||||
throw Error(`Asset '${name} not found'`);
|
||||
}
|
||||
return assetPath;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user