diff --git a/packages/metro/src/node-haste/lib/AssetPaths.js b/packages/metro/src/node-haste/lib/AssetPaths.js index be75b2149c..def6ae72a6 100644 --- a/packages/metro/src/node-haste/lib/AssetPaths.js +++ b/packages/metro/src/node-haste/lib/AssetPaths.js @@ -69,7 +69,7 @@ function tryParse( function parse(filePath: string, platforms: $ReadOnlySet): AssetPath { const result = tryParse(filePath, platforms); if (result == null) { - throw new Error('invalid asset file path: `${filePath}'); + throw new Error(`invalid asset file path: ${filePath}`); } return result; }