From 7454f24519e2147cd978db0425c6a167aff908ad Mon Sep 17 00:00:00 2001 From: Fredrik Burmester Date: Wed, 1 May 2024 09:12:16 +0200 Subject: [PATCH] fix: Template literal syntax in error handling for asset file paths --- packages/metro/src/node-haste/lib/AssetPaths.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }